Ejemplo n.º 1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Configuration.Initialize();

            if (Configuration.MainUI == Configuration.MAINUI_REGCONTROL)
            {
                RegisterControl regWindow = new RegisterControl(null);
                regWindow.ShowDialog();
                regWindow.Close();
                this.Shutdown();
            }

            if (Configuration.MainUI == Configuration.MAINUI_ADDRESSACCESS)
            {
                AddressAccessWindow addrWindow = new AddressAccessWindow(null);
                addrWindow.ShowDialog();
                this.Shutdown();
            }

            MainWindow mainwin     = new MainWindow();
            Login      loginwindow = new Login();

            if (Configuration.NeedLogin)
            {
                loginwindow.ShowDialog();
                if (!loginwindow.DialogResult.GetValueOrDefault())
                {
                    this.Shutdown();
                }
            }

            mainwin.ShowDialog();
        }
Ejemplo n.º 2
0
        public void DoShowRegisterWindow()
        {
            RegisterControl regWindow = new RegisterControl(mMainViewModel);

            regWindow.ShowDialog();
        }