コード例 #1
0
ファイル: MainForm.cs プロジェクト: Fman72/assignment2
 /// <summary>
 /// Function that runs when the equipmentMaintenanceButton is clicked - creates and displays a equipmentMaintenanceForm.
 /// </summary>
 /// <param name="sender">The object that called this function. In this case the equipmentMaintenanceButton.</param>
 /// <param name="e">The event arguments for the Click event passed to this function.</param>
 private void equipmentMaintenanceButton_Click(object sender, EventArgs e)
 {
     if (equipmentMaintenanceForm == null)
     {
         equipmentMaintenanceForm = new EquipmentMaintenanceForm(dataModule, this);
     }
     equipmentMaintenanceForm.ShowDialog();
 }
コード例 #2
0
 /// <summary>
 /// Function that runs when the equipmentMaintenanceButton is clicked - creates and displays a equipmentMaintenanceForm.
 /// </summary>
 /// <param name="sender">The object that called this function. In this case the equipmentMaintenanceButton.</param>
 /// <param name="e">The event arguments for the Click event passed to this function.</param>
 private void equipmentMaintenanceButton_Click(object sender, EventArgs e)
 {
     if (equipmentMaintenanceForm == null)
     {
         equipmentMaintenanceForm = new EquipmentMaintenanceForm(dataModule, this);
     }
     equipmentMaintenanceForm.ShowDialog();
 }