private void backtbn_Click(object sender, EventArgs e)
 {
     if (user.mod == true)
     {
         ManagerPage menu = new ManagerPage();
         menu.user = user;
         menu.Show();
         this.Close();
     }
     if (user.mod == false)
     {
         MainUserPage menu = new MainUserPage();
         menu.user = user;
         menu.Show();
         this.Close();
     }
 }
 private void backbtn_Click(object sender, EventArgs e)
 {
     clientgrid.CancelEdit();
     if (user.mod == true)
     {
         ManagerPage menu = new ManagerPage();
         menu.user = user;
         menu.Show();
         this.Close();
     }
     if (user.mod == false)
     {
         MainUserPage menu = new MainUserPage();
         menu.user = user;
         menu.Show();
         this.Close();
     }
 }