public TextEditorModule(IUnityContainer container, ILoggerFacade logger, IDockController dockController, IEventAggregator eventAggregator) { Container = container; _logger = logger; _dockController = dockController; _eventAggregator = eventAggregator; }
public MenuViewModel(IEventAggregator eventAggregator, IDockController dockController) { _eventAggregator = eventAggregator; _dockController = dockController; MenuEventCommand = new DelegateCommand <MenuOption?>(MenuEventClicked); }
public TextEditorModuleEventAggregation(IEventAggregator eventAggregator, IDockController dockController) { _eventAggregator = eventAggregator; _dockController = dockController; var createNewFile = _eventAggregator.GetEvent <MenuSelectEvent>(); if (_subscriptionToken != null) { createNewFile.Unsubscribe(_subscriptionToken); } _subscriptionToken = createNewFile.Subscribe(MenuSelecteEventHandler, ThreadOption.UIThread, false); }
public static IMenuEvent CreateMenuEvent(MenuOption?menuOption, IDockController dockController) { IMenuEvent menuEvent = null; switch (menuOption) { case MenuOption.New: menuEvent = new CreateNewFileMenuEvent(dockController); break; case MenuOption.Save: break; default: new NotImplementedException(); break; } return(menuEvent); }
public Shell(IDockController dock) : this() { dock.DockingManager = dockingManager; }
public CreateNewFileMenuEvent(IDockController dockController) { this._dockController = dockController; }