Beispiel #1
0
        private void AddUserButton_Click(object sender, EventArgs e)
        {
            UserAdd adder = new UserAdd(connection);

            adder.ShowDialog();
            this.Enabled = false;
            while (adder.Visible)
            {
            }
            this.Enabled = true;
        }
 private void UBtnUpdate_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         UserAdd objUserAdd = new UserAdd(1, this);
         objUserAdd.Show();
     }
     catch (Exception exp)
     {
         MessageBox.Show(exp.Message, "Exception Error");
     }
 }
 private void UBtnAddNewUser_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         // simply go to useradd form
         UserAdd objUserAdd = new UserAdd(0, this);
         objUserAdd.Show();
     }
     catch (Exception exp)
     {
         MessageBox.Show(exp.Message, "Exception Error");
     }
 }