Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainControl mainControl = new MainControl();

            //Application.Run(new FormMain());
        }
        public RentVehicleControl(MainControl mainControl)
        {
            this.MainControl        = mainControl;
            this.FormCategorySearch = new FormAvailableVehicles(this);
            FormCategorySearch.displayAvailableVehiclesUI();
            List <string> vehicleCategory = VehicleDAO.Instance.RetrieveCategoryList();

            FormCategorySearch.displayCategory(vehicleCategory);
        }
Пример #3
0
 public FormMain(MainControl mainControl) : this()
 {
     this.mainControl = mainControl;
 }
Пример #4
0
 public EnquireVehicleStatusControl(MainControl mainControl)
 {
     this.mainControl = mainControl;
     this.searchUI    = new FormSearch(this);
     this.searchUI.displaySearchUI();
 }