Пример #1
0
        private void btnAdmin_Click(object sender, EventArgs e)
        {
            this.Hide();
            AdminAuthenticator openInstance = new AdminAuthenticator();

            openInstance.ShowDialog();
            Environment.Exit(0);
        }
Пример #2
0
        private void btnAdmin_Click(object sender, EventArgs e)
        {
            // Opens the admin authenticator and has the admin sign in.
            // Also closes the previous windows form.
            // - MW
            this.Hide();
            AdminAuthenticator openInstance = new AdminAuthenticator();

            openInstance.ShowDialog();
            Environment.Exit(0);
        }