예제 #1
0
        /// <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;
            }

        }
예제 #2
0
        /// <summary>
        /// Called when the application starts.
        /// </summary>
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Invert911.InvertCommon.Utilities.ConfigurationManager.Instance.WebServiceURL = @"http://www.Invert911.com/";

            MainWindow mainWindow = new MainWindow(InvertCommon.Framework.i9ApplicationType.i9CloudClient);
            mainWindow.WindowState = WindowState.Maximized;
            mainWindow.Show();
        }
예제 #3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //Start app minimized.
            this.WindowState = System.Windows.WindowState.Maximized;

            //Set WPF Skin 
            ThemeManager.ApplyTheme(Application.Current, ThemeType.Royale);

            mMainWindow = this;
            SetWindowIcon();

            //Navigate to the login page:
            LoginPage lp = new LoginPage();
            MainFrame.Navigate(lp);
        }