private void button2_Click(object sender, EventArgs e) //create new customer { create CreateCustomer = new create(); CreateCustomer.ShowDialog(); CreateCustomer.user = user; }
private void Manager_SelectedIndexChanged(object sender, EventArgs e) //When the Manager chooses a new option, open corresponding window { if (Manager.SelectedIndex == 0) { create CreateCustomer = new create(); CreateCustomer.getUser = "******"; CreateCustomer.ShowDialog(); } else if (Manager.SelectedIndex == 1) { CheckBookingsStaff checkBooking = new CheckBookingsStaff(); checkBooking.getUser = "******"; checkBooking.ShowDialog(); } else if (Manager.SelectedIndex == 2) { NewBooking CreateBooking = new NewBooking(); CreateBooking.getUser = "******"; CreateBooking.user = 1; CreateBooking.ShowDialog(); } else if (Manager.SelectedIndex == 3) { SaleReps sRepsDetails = new SaleReps(); sRepsDetails.ShowDialog(); } else if (Manager.SelectedIndex == 4) { Upgrade upgrade = new Upgrade(); upgrade.ShowDialog(); } }
private void SalesRep_SelectedIndexChanged(object sender, EventArgs e) //When a salesRep chooses a new option, open corresponding window { if (SalesRep.SelectedIndex == 0) { create CreateCustomer = new create(); CreateCustomer.getUser = "******"; CreateCustomer.ShowDialog(); } else if (SalesRep.SelectedIndex == 2) { NewBooking CreateBooking = new NewBooking(); CreateBooking.getUser = "******"; CreateBooking.user = user; CreateBooking.ShowDialog(); } else if (SalesRep.SelectedIndex == 1) { CheckBookingsStaff checkBooking = new CheckBookingsStaff(); checkBooking.getUser = "******"; checkBooking.ShowDialog(); } }
private void newAccountToolStripMenuItem_Click(object sender, EventArgs e) { create f2 = new create(); f2.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { create f = new create(); f.ShowDialog(); }