private void button1_Click(object sender, EventArgs e) { var mainForm = new ScheduleMainForm(this); this.Hide(); mainForm.ShowDialog(); this.Close(); }
public ScheduleBookForm(ScheduleMainForm scheduleMainForm) { _scheduleMainForm = scheduleMainForm; InitializeComponent(); lbl_TimeSlotBooked.Text = string.Join(":", _scheduleMainForm.TimeSlot); lbl_date.Text = DateTime.Now.ToString("dd/MM/yyyy"); rdo_Paint.Tag = WashingType.Paint; rdo_Normal.Tag = WashingType.Normal; rdo_Cleanup.Tag = WashingType.Cleanup; rdo_General.Tag = WashingType.General; }