/// <summary> /// Called when the application starts. /// </summary> private void Application_Startup(object sender, StartupEventArgs e) { string StartVersionType = "STANDALONE"; if (e.Args.Length > 0) { StartVersionType = e.Args[0].ToString().Trim().ToUpper(); } MainWindow mainWindow = null; switch (StartVersionType) { case "LITE": PolicePadWindow IncidentLiteWindow = new PolicePadWindow(); IncidentLiteWindow.Show(); break; case "CLOUD": Invert911.InvertCommon.Utilities.ConfigurationManager.Instance.WebServiceURL = @"http://www.Invert911.com/"; mainWindow = new MainWindow(InvertCommon.Framework.i9ApplicationType.i9CloudClient); mainWindow.WindowState = WindowState.Maximized; mainWindow.Show(); break; default: //Full Version App mainWindow = new MainWindow(InvertCommon.Framework.i9ApplicationType.i9FullClient); mainWindow.WindowState = WindowState.Maximized; mainWindow.Show(); break; } }
private void Window_Loaded(object sender, RoutedEventArgs e) { this.WindowState = System.Windows.WindowState.Normal; //Set WPF Skin ThemeManager.ApplyTheme(Application.Current, ThemeType.Royale); mMainWindow = this; //Navigate to the Incident Entry Page: PolicePadWorkspace lp = new PolicePadWorkspace(); MainFrame.Navigate(lp); }
/// <summary> /// Called when the application starts. /// </summary> private void Application_Startup(object sender, StartupEventArgs e) { // Create main application window, starting minimized if specified PolicePadWindow IncidentLiteWindow = new PolicePadWindow(); IncidentLiteWindow.Show(); }