/// <summary>
 /// Build the Administration Menu.
 /// </summary>
 /// <param name="menuBar"></param>
 protected void buildAdministrationMenu(MenuBar menuBar)
 {
     if (ApplicationManager.ApplcationConfiguration.IsMultiuser() && ApplicationManager.User.IsAdmin())
     {
         AdministrationMenu menu = new AdministrationMenu();
         menuBar.Items.Add(menu);
     }
 }
Exemple #2
0
 public GuiController()
 {
     mainMenu             = new MainMenu();
     administrationMenu   = new AdministrationMenu();
     vehicleMenuToAddData = new VehicleMenuToAddData();
     dataEditingMenu      = new DataEditingMenu();
     dataDeleteMenu       = new DataDeleteMenu();
     rentMenu             = new RentMenu();
     getInfoMenu          = new GetInfoMenu();
     searchInfoMenu       = new SearchInfoMenu();
     functionsForSQL      = new FunctionsCheckEnteredAndSQLData();
     functionsForBike     = new BikeManagement();
     functionsForCar      = new CarManagement();
     functionsForMoto     = new MotoManagement();
     functionsForClient   = new ClientManagement();
     sqlInsert            = new SQLInsert();
     sqlEdit   = new SQLEdit();
     sqlDelete = new SQLDelete();
 }