示例#1
0
 public frmAvailableStaff(DataGridViewRow dgvr, SqlConnection sqlc, ref bool fin, FrmRotaControl sender)
 {
     InitializeComponent();
     Icon = Studio2RotaControl.Properties.Resources.logo_small;
     dataRow = dgvr;
     con = sqlc;
     finishedAssignment = fin;
     senderForm = sender;
 }
示例#2
0
 private void btnViewRota_Click(object sender, EventArgs e)
 {
     Form frmViewRota = new FrmRotaControl(this, editable: false);
     frmViewRota.Show();
     Hide();
 }
示例#3
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);
     }
 }