예제 #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);
            }
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        private void EditCheck()
        {
            MaintenanceCheck mc;

            if (listViewMaintenanceChecks.SelectedItems.Count > 0)
            {
                mc = (MaintenanceCheck)listViewMaintenanceChecks.SelectedItems[0].Tag;
            }
            else
            {
                return;
            }

            MaintenanceCheckEdit temp = new MaintenanceCheckEdit(mc);

            temp.ShowDialog(this);
        }