Ejemplo n.º 1
0
        private void AddCheck()
        {
            MaintenanceCheck cas3MaintenanceLiminationItem =
                new MaintenanceCheck {
                ParentAircraft = _currentAircraft, ParentAircraftId = _currentAircraft.ItemId
            };

            MaintenanceCheckEdit temp = new MaintenanceCheckEdit(cas3MaintenanceLiminationItem);

            temp.ShowDialog(this);

            if (cas3MaintenanceLiminationItem.ItemId != -1)
            {
                _maintenanceChecks.Add(cas3MaintenanceLiminationItem);
            }
        }