Example #1
0
 private void loginToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (cl == null)
     {
         cl             = new CreateLogin();
         cl.FormClosed += (s, arg) => { this.Enabled = true; cl = null; };
         cl.Show();
         this.Enabled = false;
     }
 }
Example #2
0
        void OpenCreateLogin()
        {
            if (!currUser.AddLogin)
            {
                MessageBox.Show("Current User does not have the administrative privilege to perform this action.");
                return;
            }
            //this.Enabled = false;
            //CreateLogin createLogin = new CreateLogin();
            //createLogin.FormClosed += (s, eventdetails) => { Enabled = true; };
            //createLogin.Show();
            var createLogin = new CreateLogin();

            createLogin.ShowDialog();
        }