private void button2_Click(object sender, EventArgs e) { var form2 = new AppointmentBooking(); form2.Closed += (sender1, args) => this.Close(); this.Hide(); form2.Show(); }
public AppointmentBooking() { Instance = this; InitializeComponent(); InitializeControls(); }