private void DoubleClickShipPart(Point point) { if (_dgvMain.GetID() == 0) { return; } ShipPartList shipPartList = ShipPartList.getInstance(); ShipPart shipPart = shipPartList.getItem(_dgvMain.GetID()); ShipPart_AddEdit shipPartAE = new ShipPart_AddEdit(shipPart); if (shipPartAE.ShowDialog() == DialogResult.OK) { loadCars(); } }
public Car_AddEdit(Car car) { InitializeComponent(); _car = car; diagCardList = DiagCardList.getInstance(); driverCarList = DriverCarList.getInstance(); driverList = DriverList.getInstance(); dtpList = DTPList.getInstance(); invoiceList = InvoiceList.getInstance(); mileageList = MileageList.getInstance(); policyList = PolicyList.getInstance(); repairList = RepairList.getInstance(); violationList = ViolationList.getInstance(); shipPartList = ShipPartList.getInstance(); }
public DialogResult ShowDialog(Car car) { _car = car; InitializeComponent(); _diagCardList = DiagCardList.getInstance(); _driverCarList = DriverCarList.getInstance(); _driverList = DriverList.getInstance(); _dtpList = DTPList.getInstance(); _invoiceList = InvoiceList.getInstance(); _mileageList = MileageList.getInstance(); _policyList = PolicyList.getInstance(); _repairList = RepairList.getInstance(); _violationList = ViolationList.getInstance(); _shipPartList = ShipPartList.getInstance(); return(ShowDialog()); }