Example #1
0
        void AppStartup(Object sender, StartupEventArgs e)
        {
            ErrorHandlingCore.Init();
            AppSettingsCore.Init();

            Current.ShutdownMode = ShutdownMode.OnMainWindowClose;

            MainWindow mainWindow = new MainWindow();

            mainWindow.Show();
        }
Example #2
0
        void AppStartup(Object sender, StartupEventArgs e)
        {
            ErrorHandlingCore.Init();
            CommandLineCore.Init(e);
            CoreData.Init();

            Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;

            //LoginWindow loginWindow = new LoginWindow();
            //if (loginWindow.ShowDialog() != true)
            //{
            //    Current.Shutdown();

            //    return;
            //}

            Current.ShutdownMode = ShutdownMode.OnMainWindowClose;

            MainWindow mainWindow = new MainWindow();

            mainWindow.Show();
        }