예제 #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            MainWindow mainWindow = new MainWindow();

            MainViewModel          = new ViewModels.ViewModel(mainWindow.dockingManager);
            mainWindow.DataContext = MainViewModel;
            this.MainWindow        = mainWindow;

            mainWindow.Show();
        }
예제 #2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            String appTheme = "Light";

            //String appTheme = "Dark";
            this.Resources.MergedDictionaries[0].Source =
                new Uri($"/Styles/Themes/{appTheme}.xaml", UriKind.Relative);

            MainWindow mainWindow = new MainWindow();

            MainViewModel          = new ViewModels.ViewModel(mainWindow.dockingManager);
            mainWindow.DataContext = MainViewModel;
            this.MainWindow        = mainWindow;

            mainWindow.Show();
        }