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