public static PolicyList getInstance() { if (uniqueInstance == null) uniqueInstance = new PolicyList(); return uniqueInstance; }
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(); }