Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 private void btnViewRota_Click(object sender, EventArgs e)
 {
     Form frmViewRota = new FrmRotaControl(this, editable: false);
     frmViewRota.Show();
     Hide();
 }
Ejemplo n.º 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);
     }
 }