/// <summary>
 /// Initializes a new instance of the form EditSchedule class.
 /// </summary>
 /// <param name="shedule">Shedule form details to edit.</param>
 /// <param name="date">Date of first date in the DataGridView.</param>
 public EditDate(Shedule shedule, DateTime date)
 {
     InitializeComponent();
     this.shedule = shedule;
     this.date    = date;
     startDateTimePicker.Value = date;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the form EditAppointment class.
 /// </summary>
 /// <param name="shedule">Shedule form details to edit.</param>
 /// <param name="date">Date of first date in the DataGridView.</param>
 public EditAppointment(Shedule shedule, DateTime date)
 {
     InitializeComponent();
     this.shedule            = shedule;
     this.date               = date;
     timePicker.Format       = DateTimePickerFormat.Custom;
     timePicker.CustomFormat = "HH:mm";
     datePicker.Value        = date;
     timePicker.Value        = date;
 }