예제 #1
0
 /// <summary>
 /// Function that runs when the vehicleMaintenanceButton is clicked - creates and displays a vehicleMaintenanceForm.
 /// </summary>
 /// <param name="sender">The object that called this function. In this case the vehicleMaintenanceButton.</param>
 /// <param name="e">The event arguments for the Click event passed to this function.</param>
 private void vehicleMaintenanceButton_Click(object sender, EventArgs e)
 {
     if (vehicleMaintenanceForm == null)
     {
         vehicleMaintenanceForm = new VehicleMaintenanceForm(dataModule, this);
     }
     vehicleMaintenanceForm.ShowDialog();
 }
예제 #2
0
 /// <summary>
 /// Function that runs when the vehicleMaintenanceButton is clicked - creates and displays a vehicleMaintenanceForm.
 /// </summary>
 /// <param name="sender">The object that called this function. In this case the vehicleMaintenanceButton.</param>
 /// <param name="e">The event arguments for the Click event passed to this function.</param>
 private void vehicleMaintenanceButton_Click(object sender, EventArgs e)
 {
     if (vehicleMaintenanceForm == null)
     {
         vehicleMaintenanceForm = new VehicleMaintenanceForm(dataModule, this);
     }
     vehicleMaintenanceForm.ShowDialog();
 }