Пример #1
0
 private void btnViewRota_Click(object sender, EventArgs e)
 {
     Form frmViewRota = new FrmRotaControl(this, editable: false);
     frmViewRota.Show();
     Hide();
 }
Пример #2
0
 private void btnLogIn_Click(object sender, EventArgs e)
 {
     if (searchUsers(tbxUsername.Text, tbxPassword.Text))
     {
         if (classSessionStorage.PermLevel == 1)
         {
             Form frmViewRota = new FrmRotaControl(this, editable: false);
             frmViewRota.Show();
             Hide();
         }
         else
         {
             Size = new Size(500, 550);
             tblMenu.Visible = true;
         }
     }
     else
     {
         classSessionStorage.PermLevel = 0;
         classSessionStorage.Username = "******";
         Size = new Size(500, 350);
     }
 }