private void editExistingBooking(Booking b) { if (nbw != null) { nbw.Close(); } nbw = new NewBookingWindow(sims, dateTimePicker1.Value, this, b); nbw.Show(); }
private void newBookingBTN_Click(object sender, EventArgs e) { if (nbw != null) { nbw.Close(); } nbw = new NewBookingWindow(sims, dateTimePicker1.Value, this, null); nbw.Show(); }
private void newBookingForSelectedSim(string mac, Panel p) { if (nbw != null) { nbw.Close(); } int x = p.PointToClient(Cursor.Position).X; nbw = new NewBookingWindow(sims, dateTimePicker1.Value, this, null, mac, x); nbw.Show(); }