コード例 #1
0
ファイル: App.axaml.cs プロジェクト: jonthysell/TEGS
        private void Desktop_Startup(object sender, ControlledApplicationLifetimeStartupEventArgs e)
        {
            MessageHandlers.RegisterMessageHandlers(this);

            AppViewModel.Initialize(e.Args);

            if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
            {
                var window = new MainWindow
                {
                    VM = new MainViewModel()
                };
                desktop.MainWindow = window;
            }
        }
コード例 #2
0
ファイル: App.axaml.cs プロジェクト: jonthysell/TEGS
 private void Desktop_Exit(object sender, ControlledApplicationLifetimeExitEventArgs e)
 {
     MessageHandlers.UnregisterMessageHandlers(this);
 }