public FormManage(VehicleRentalManagement manage) { InitializeComponent(); this.manage = manage; this.listCarContracts = manage.GetCarRelatedConTracts(); this.listTruckContracts = manage.GetTruckRelatedConTracts(); ContractList.MouseDoubleClick += new MouseEventHandler(contractList_MouseDoubleClick); ApprovedContractList.MouseDoubleClick += new MouseEventHandler(approvedContractList_MouseDoubleClick); // manage.testGetType(); // This is only for debug: Test if we can infer the type of the Subclass from the parent Class Object. SetUpGui(); }
private void UpdateDataChange() { this.manage = Program.LoadData(); this.listCarContracts = manage.GetCarRelatedConTracts(); this.listTruckContracts = manage.GetTruckRelatedConTracts(); }