private void ViewShifts_Load(object sender, EventArgs e) { addShifts = new AddShifts(); countdownLbl.Visible = false; }
private void addShifsBtn_Click(object sender, EventArgs e) { if (addShifts == null) { addShifts = new AddShifts(); addShifts.FormClosed += delegate { addShifts = null; }; } addShifts.currentUser = currentUser; addShifts.Show(); this.Hide(); }