private void button4_Click(object sender, EventArgs e) { availabilityForm avail = new availabilityForm(); avail.setText("Availability", "enter times when you are NOT available", "open availability"); this.Hide(); avail.ShowDialog(); avail.sendBackHours(ref newEmployee.avail); this.Show(); }
private void button1_Click(object sender, EventArgs e) { availabilityForm storeHours = new availabilityForm(); storeHours.setText("Payroll Hours", "Enter the times when you need workers scheduled", " Closed All Day"); this.Hide(); storeHours.storeSetUp(); storeHours.Size = new System.Drawing.Size(650, 800); if (edit) { storeHours.setEditHours(newStore.storeHours); } else { } storeHours.ShowDialog(); storeHours.sendBackHours(ref newStore.storeHours); this.Show(); }