private void buttonAddSubcheck_Click(object sender, EventArgs e) { MaintenanceSubCheckForm form = new MaintenanceSubCheckForm(directive); if (form.ShowDialog() == DialogResult.OK) { UpdateInformation(); } }
private void headerControl_EditDisplayerRequested(object sender, ReferenceEventArgs e) { MaintenanceSubCheckForm form = new MaintenanceSubCheckForm(subCheck); if (form.ShowDialog() == DialogResult.OK) { UpdateInformation(false); string caption = ((Aircraft)subCheck.Parent.Parent.Parent).RegistrationNumber + ". " + subCheck.Name + ". Maintenance Job Cards"; if (DisplayerRequested != null) { DisplayerRequested(this, new ReferenceEventArgs(null, ReflectionTypes.ChangeTextOfContainingDisplayer, caption)); } } e.Cancel = true; }