public MainPageButtonsPanelControlViewModel(IButtonsEventCommandService buttonsEventCommandService, ISettingServices settingServices, IRegionContextManager regionContextManager, IEventAggregator eventAggregator) { this.settingServices = settingServices; this.regionContextManager = regionContextManager; this.eventAggregator = eventAggregator; RefreshPageDCommand = buttonsEventCommandService.FindOrRegisteredCommands(CommandNames.RefreshPageData); SavePageDCommand = buttonsEventCommandService.FindOrRegisteredCommands(CommandNames.SavePageData); ImportPageDCommand = buttonsEventCommandService.FindOrRegisteredCommands(CommandNames.ImportPageData); UpDownMultiTableDCommand = new DelegateCommand(UpDownMultiTable, CanUpDownMultiTable); InitializeDisplayPageRegionTypes(); }
public NavigationButtonsPanelControlViewModel(IButtonsEventCommandService buttonsEventCommandService) { this.buttonsEventCommandService = buttonsEventCommandService; RefreshTreeViewDCommand = buttonsEventCommandService.FindOrRegisteredCommands(CommandNames.RefreshTreeViewDCommand); EditTreeViewDCommand = buttonsEventCommandService.FindOrRegisteredCommands(CommandNames.EditTreeViewDCommand); }