private void adminpanelBttn_Click(object sender, EventArgs e)
 {
     if (adminpanelform == null)
     {
         adminpanelform             = new adminpanelFrm();
         adminpanelform.FormClosed += adminpanelform_FormClosed;
     }
     adminpanelform.Show(this);
     Hide();
 }
 void adminpanelform_FormClosed(object sender, FormClosedEventArgs e)
 {
     adminpanelform = null;
     LoadUserDetails();
     Show();
 }