//ON-CLICK FUNCTIONS /// <summary> /// Function that runs when the ownerMaintenanceButton is clicked - creates and displays a ownerMaintenanceForm. /// </summary> /// <param name="sender">The object that called this function. In this case the ownerMaintenanceButton.</param> /// <param name="e">The event arguments for the Click event passed to this function.</param> private void ownerMaintenanceButton_Click(object sender, EventArgs e) { if (ownerMaintenanceForm == null) { ownerMaintenanceForm = new OwnerMaintenanceForm(dataModule, this); } ownerMaintenanceForm.ShowDialog(); }