private void addBttn_Click(object sender, EventArgs e)
 {
     if (addedituserform == null)
     {
         addedituserform      = new addedituserFrm();
         addedituserform.Text = "Add User";
         addedituserform.submitupdateBttn.Text = "Submit";
         addedituserform.FormClosed           += addedituserform_FormClosed;
     }
     addedituserform.Show(this);
     Hide();
 }
 private void editBttn_Click(object sender, EventArgs e)
 {
     if (addedituserform == null)
     {
         addedituserform                       = new addedituserFrm();
         addedituserform.Tag                   = usersDtgrdvw[0, usersDtgrdvw.CurrentRow.Index].Value;
         addedituserform.roleCmbbx.Tag         = usersDtgrdvw[0, usersDtgrdvw.CurrentRow.Index].Value;
         addedituserform.Text                  = "Edit User";
         addedituserform.submitupdateBttn.Text = "Update";
         addedituserform.FormClosed           += addedituserform_FormClosed;
     }
     addedituserform.Show(this);
     Hide();
 }
 void addedituserform_FormClosed(object sender, FormClosedEventArgs e)
 {
     addedituserform = null;
     LoadUsers();
     Show();
 }