<Application x:Class="SmartAquaViewer.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:SmartAquaViewer"
             xmlns:view="clr-namespace:SmartAquaViewer.View"
             xmlns:vm="clr-namespace:SmartAquaViewer.ViewModel"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Resources/Generic.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <DataTemplate DataType="{x:Type vm:MonitoringViewModel}">
                <view:MonitoringView/>
            </DataTemplate>
            <DataTemplate DataType="{x:Type vm:EnergyViewModel}">
                <view:EnegyView/>
            </DataTemplate>
            <DataTemplate DataType="{x:Type vm:GreenHouseGasViewModel}">
                <view:GreenHouseView/>
            </DataTemplate>
            <DataTemplate DataType="{x:Type vm:CCTVViewModel}">
                <view:CCTVView/>
            </DataTemplate>
        </ResourceDictionary>
    </Application.Resources>
</Application>
