Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 private void UpdateDataChange()
 {
     this.manage             = Program.LoadData();
     this.listCarContracts   = manage.GetCarRelatedConTracts();
     this.listTruckContracts = manage.GetTruckRelatedConTracts();
 }