Ejemplo n.º 1
0
        private void buttonAddSubcheck_Click(object sender, EventArgs e)
        {
            MaintenanceSubCheckForm form = new MaintenanceSubCheckForm(directive);

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateInformation();
            }
        }
Ejemplo n.º 2
0
        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;
        }