Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            StartupLoginForm Login = new StartupLoginForm();
            Application.Run(Login);

            if (Login.valid)
            {
                GlobalMutableState.userName = Login.userName;
                GlobalMutableState.StartupDate = System.DateTime.Now;
                Application.Run(new MainMenu(Login.hospital));
            }
        }
Exemple #2
0
        private void ButtonRestartOrderNumber_Click(System.Object sender, System.EventArgs e)
        {
            Interaction.MsgBox("Must enter user name 'URMCLAB' with NO password!", MsgBoxStyle.OkOnly, "Reminder");

              StartupLoginForm Login = new StartupLoginForm();
            Login.ShowDialog();

            if (Login.valid)
            {
                 new RestartWheel(getSqlServer).ShowDialog();
            }
        }