public void Initialize() { RegisterViewModels(); var taskAdminScreenInfo = MenuInfo.CreateMenuItem("Task Management", true, true, Permissions.TaskManagementPermission); _screenFactoryRegistry.RegisterFactory(taskAdminScreenInfo.ScreenGuid, new TaskManagementScreenFactory(_unityContainer)); _menuRegistry.RegisterMenuInfo(taskAdminScreenInfo, null, 0); var timeEntryTypeScreenInfo = MenuInfo.CreateMenuItem("TimeEntry types", true, false, Permissions.TimeEntryTypesPermission); _screenFactoryRegistry.RegisterFactory(timeEntryTypeScreenInfo.ScreenGuid, new TimeEntryTypeScreenFactory(_unityContainer)); _menuRegistry.RegisterMenuInfo(timeEntryTypeScreenInfo, "Administration", 0); }
public void Initialize() { RegisterViewModels(); var invoiceScreenInfo = MenuInfo.CreateMenuItem("Manage invoices", true, false, Permissions.InvoicePermission); _menuRegistry.RegisterMenuInfo(invoiceScreenInfo, "Invoices", 0); _screenFactoryRegistry.RegisterFactory(invoiceScreenInfo.ScreenGuid, new InvoiceScreenFactory(_container)); var invoiceTemplateInfo = MenuInfo.CreateMenuItem("Manage templates", true, false, Permissions.TemplateManagementPermission); _menuRegistry.RegisterMenuInfo(invoiceTemplateInfo, "Invoices", 1); _screenFactoryRegistry.RegisterFactory(invoiceTemplateInfo.ScreenGuid, new InvoiceTemplatesScreenFactory(_container)); }
/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { RegisterViewModels(); var userAdminScreenInfo = MenuInfo.CreateMenuItem("User administration", true, false, Permissions.UserAdministrationPermission); _menuRegistry.RegisterMenuInfo(userAdminScreenInfo, "Administration", 1); _screenFactoryRegistry.RegisterFactory(userAdminScreenInfo.ScreenGuid, new UserAdministrationScreenFactory(_unityContainer)); _unityContainer.Resolve <IDialogService>(); }
/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { RegisterViewModels(); // Disabled for H&B //var taskAdminScreenInfo = MenuInfo.Create(0, "Registration", true, _appSettings.StartScreenIsRegistration, false, true); //_screenFactoryRegistry.RegisterFactory(taskAdminScreenInfo.ScreenGuid, new TaskScreenFactory(_unityContainer, _userSession)); //_menuRegistry.RegisterMenuInfo(taskAdminScreenInfo); //_unityContainer.Resolve<IDialogService>(); var settingsScreenInfo = MenuInfo.Create(2, "Settings", true, false, true, true); _screenFactoryRegistry.RegisterFactory(settingsScreenInfo.ScreenGuid, new SettingsScreen.SettingsScreenFactory(_unityContainer)); _menuRegistry.RegisterMenuInfo(settingsScreenInfo); }
public void Initialize() { // Main module _adminScreenInfo = MenuInfo.Create(1, "Workplan", true, false, false, false); _screenFactoryRegistry.RegisterFactory(_adminScreenInfo.ScreenGuid, _forecastScreenFactory); _menuRegistry.RegisterMenuInfo(_adminScreenInfo); // Sub module Registration var submenuForecastRegistration = SubMenuInfo.Create("Registration", typeof(ForecastRegistrationRootView).Name, _adminScreenInfo); submenuForecastRegistration.IsActive = true; _adminScreenInfo.AddSubMenu(submenuForecastRegistration); // Sub module Overview var submenuForecastOverview = SubMenuInfo.Create("Overview", typeof(ForecastOverviewView).Name, _adminScreenInfo); _adminScreenInfo.AddSubMenu(submenuForecastOverview); }
public void Initialize() { RegisterViewModels(); //var statusReport = MenuInfo.CreateMenuItem("Time report", true, false, Permissions.ReportPermission); //_screenFactoryRegistry.RegisterFactory(statusReport.ScreenGuid, new StatusReportScreen.StatusReportScreenFactory(_container)); //_menuRegistry.RegisterMenuInfo(statusReport, "Reports", 0); //var statusReportWithEstimates = MenuInfo.CreateMenuItem("Status report w. estimates", true, false, Permissions.ReportPermission); //_screenFactoryRegistry.RegisterFactory(statusReportWithEstimates.ScreenGuid, new StatusReportWithEstimatesScreen.StatusReportWithEstimatesScreenFactory(_container)); //_menuRegistry.RegisterMenuInfo(statusReportWithEstimates, "Reports", 1); var interactiveReport = MenuInfo.CreateMenuItem("Interactive report", true, false, Permissions.ReportPermission); _screenFactoryRegistry.RegisterFactory(interactiveReport.ScreenGuid, new InteractiveReportScreenFactory(_container)); _menuRegistry.RegisterMenuInfo(interactiveReport, "Reports", 2); }
/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { taskAdminScreenInfo = MenuInfo.Create(1, "Overview", true, _appSettings.StartScreenIsWeekOverview, false, true); _screenFactoryRegistry.RegisterFactory(taskAdminScreenInfo.ScreenGuid, new OverviewScreenFactory(_unityContainer)); _menuRegistry.RegisterMenuInfo(taskAdminScreenInfo); // Disabled for H&B //_subMenuDailyOverview = SubMenuInfo.Create("Daily", typeof(DayOverviewScreen.DayOverviewScreen).Name, taskAdminScreenInfo); //_subMenuDailyOverview.IsActive = !_appSettings.StartScreenIsWeekOverview; //taskAdminScreenInfo.AddSubMenu(_subMenuDailyOverview); _subMenuWeekly = SubMenuInfo.Create("Weekly", typeof(WeeklyOverviewScreen.WeeklyOverviewScreen).Name, taskAdminScreenInfo); _subMenuWeekly.IsActive = _appSettings.StartScreenIsWeekOverview; taskAdminScreenInfo.AddSubMenu(_subMenuWeekly); var overview = _unityContainer.Resolve <IOverviewSwitcherService>(); // Disabled for H&B //overview.AttachDailyOverviewSubmenu(_subMenuDailyOverview); overview.AttachWeeklyOverviewSubmenu(_subMenuWeekly); _unityContainer.Resolve <IDialogService>(); }