本文整理汇总了C#中IMenuService类的典型用法代码示例。如果您正苦于以下问题:C# IMenuService类的具体用法?C# IMenuService怎么用?C# IMenuService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IMenuService类属于命名空间,在下文中一共展示了IMenuService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InventoryService
public InventoryService(IInventoryDao inventoryDao, IApplicationState applicationState, ICacheService cacheService, IMenuService menuService)
{
_inventoryDao = inventoryDao;
_applicationState = applicationState;
_cacheService = cacheService;
_menuService = menuService;
}
示例2: ShellViewModel
public ShellViewModel(IMenuService menuService
, IAppConfiguration appConfiguration
, IUserSettingsService settings)
: base()
{
this.PageLoadingCommand = DelegateCommand.FromAsyncHandler(PageLoading);
this.UserSettingsService = settings;
this.AppName = appConfiguration.AppName;
this.WriteReadyStatus();
this.ToggleFullScreenCommand = new DelegateCommand<object>(o =>
{
if (o is IToggleFullScreen)
{
var tfs = o as IToggleFullScreen;
tfs.ToggleFullScreen = !tfs.ToggleFullScreen;
}
this.ToggleFullScreen = !this.ToggleFullScreen;
});
Menu = menuService.Menu.ToObservableCollection();
EventAggregator.GetEvent<MenuUpdated>().Subscribe(m =>
{
Menu.Clear();
Menu.AddRange(m.ToObservableCollection());
});
EventAggregator.GetEvent<SubMenuVisibilityChanged>().Subscribe(m => this.IsSubMenuVisible = m);
}
示例3: PrinterMapViewModel
public PrinterMapViewModel(PrinterMap model, IMenuService menuService, IPrinterDao printerDao, ICacheService cacheService)
{
Model = model;
_menuService = menuService;
_printerDao = printerDao;
_cacheService = cacheService;
}
示例4: HomeController
public HomeController(INetApiService netApiService,
IMenuService menuService, IManagementService managementService)
{
NetApiService = netApiService;
MenuService = menuService;
ManagementService = managementService;
}
示例5: UtilitiesModule
public UtilitiesModule(
IUnityContainer container,
IMenuService menuService)
{
_container = container;
_menuService = menuService;
}
示例6: WebTestCurrentResultViewModel
public WebTestCurrentResultViewModel(AbstractWorkspace workspace, ICommandManager commandManager, ILoggerService logger, IMenuService menuService, WebTestResultView view)
: base(workspace, commandManager, logger, menuService)
{
_tooltip = "Web Test Results";
_title = "Web Test Results";
this.View = view;
}
示例7: ContentExportImport
public ContentExportImport(IMenuService menuService, IThemeService themeService, IPagesService pagesService, IStoreService storeService)
{
_menuService = menuService;
_storeService = storeService;
_themeService = themeService;
_pagesService = pagesService;
}
示例8: HomeController
public HomeController(IHomeZoneService homeZoneService, IMenuService menuService, ITranslation translation)
{
//_userManager = userManager;
_homeZoneService = homeZoneService;
_menuService = menuService;
_translation = translation;
}
示例9: MenuController
public MenuController(IMenuService menuService)
{
if (menuService == null)
throw new ArgumentNullException("menuService");
_menuService = menuService;
}
示例10: HomeTask
public HomeTask(ICountryService countryService, IPersonService personService, IMenuService menuService, IUserService userService)
{
this.countryService = countryService;
this.personService = personService;
this.menuService = menuService;
this.userService = userService;
}
示例11: DataExplorerStartable
public DataExplorerStartable(IMenuService menuService, IMessageStream messageStream,
Func<ExplorerViewModel> explorerViewModelFactory)
{
_menuService = menuService;
_messageStream = messageStream;
_explorerViewModelFactory = explorerViewModelFactory;
}
示例12: MenuItemSelectorViewModel
public MenuItemSelectorViewModel(IApplicationState applicationState, IApplicationStateSetter applicationStateSetter, IMenuService menuService,
ISettingService settingService, ICacheService cacheService)
{
_applicationState = applicationState;
_applicationStateSetter = applicationStateSetter;
_menuService = menuService;
_settingService = settingService;
_cacheService = cacheService;
CategoryCommand = new DelegateCommand<ScreenMenuCategory>(OnCategoryCommandExecute);
MenuItemCommand = new DelegateCommand<ScreenMenuItem>(OnMenuItemCommandExecute);
TypeValueCommand = new DelegateCommand<string>(OnTypeValueExecute);
FindLocationCommand = new DelegateCommand<string>(OnFindLocationExecute, CanFindLocation);
FindMenuItemCommand = new DelegateCommand<string>(OnFindMenuItemCommand);
FindTicketCommand = new DelegateCommand<string>(OnFindTicketExecute, CanFindTicket);
IncPageNumberCommand = new CaptionCommand<string>(Localization.Properties.Resources.NextPage + " >>", OnIncPageNumber, CanIncPageNumber);
DecPageNumberCommand = new CaptionCommand<string>("<< " + Localization.Properties.Resources.PreviousPage, OnDecPageNumber, CanDecPageNumber);
SubCategoryCommand = new CaptionCommand<ScreenSubCategoryButton>(".", OnSubCategoryCommand);
EventServiceFactory.EventService.GetEvent<GenericEvent<Department>>().Subscribe(OnDepartmentChanged);
EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnNumeratorReset);
NumeratorValue = "";
SubCategories = new ObservableCollection<ScreenSubCategoryButton>();
}
示例13: NavigationController
public NavigationController(IMenuService menuService,
IOrchardServices orchardServices,
INavigationManager navigationManager) {
Services = orchardServices;
_menuService = menuService;
_navigationManager = navigationManager;
T = NullLocalizer.Instance;
}
示例14: CRMStartable
public CRMStartable(ILog log, IMenuService menuService, IMessageStream messageStream,
Func<ClientEditViewModel> clientEditViewModelFactory)
{
_log = log;
_menuService = menuService;
_messageStream = messageStream;
_clientEditViewModelFactory = clientEditViewModelFactory;
}
示例15: LoginController
public LoginController(IUserService userService,
IUserMenuService userMenuService,
IMenuService menuService)
{
this.userService = userService;
this.userMenuService = userMenuService;
this.menuService = menuService;
}