Ejemplo n.º 1
0
 private void editExistingBooking(Booking b)
 {
     if (nbw != null)
     {
         nbw.Close();
     }
     nbw = new NewBookingWindow(sims, dateTimePicker1.Value, this, b);
     nbw.Show();
 }
Ejemplo n.º 2
0
 private void newBookingBTN_Click(object sender, EventArgs e)
 {
     if (nbw != null)
     {
         nbw.Close();
     }
     nbw = new NewBookingWindow(sims, dateTimePicker1.Value, this, null);
     nbw.Show();
 }
Ejemplo n.º 3
0
        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();
        }