public LoginViewModel(IDcSignalrProxy signalrProxy, IEventAggregator eventAggregator) { this._signalrProxy = signalrProxy; this._eventAggregator = eventAggregator; this._eventAggregator.GetEvent <ConnectedEvent>().Subscribe(this.OnConnected); this.LoginCommand = new DelegateCommand(this.OnLoginRequest); }
/// <summary> /// The constructor /// </summary> /// <param name="windowManager"></param> /// <param name="eventAggregator"></param> /// <param name="regionManager"></param> /// <param name="signalrProxy"></param> public HubContainerViewModel(IDcWindowManager windowManager, IEventAggregator eventAggregator, IRegionManager regionManager, IDcSignalrProxy signalrProxy) { this._windowManager = windowManager; this._eventAggregator = eventAggregator; this._regionManager = regionManager; this._eventAggregator.GetEvent <HubContentNavigateEvent>().Subscribe(this.OnHubContentNavigateEvent); this._signalrProxy = signalrProxy; }
/// <summary> /// The constructor /// </summary> /// <param name="profile"></param> public HubContentSourcesViewModel(IDcProfile profile, IDcSignalrProxy signalrProxy) { this.Profile = profile; this._signalrProxy = signalrProxy; this.NewSourcePopupRequest = new InteractionRequest <INewSourcePopup>(); this.AddSourceCommand = new DelegateCommand(this.OnAddSource); this.DeleteSourceCommand = new DelegateCommand(this.OnDeleteSource); }
/// <summary> /// The constructor. /// </summary> /// <param name="windowManager"></param> public ControlShellViewModel(IDcWindowManager windowManager, IEventAggregator eventAggregator, IRegionManager regionManager, IDcSignalrProxy signalrProxy) { this._windowManager = windowManager; this._eventAggregator = eventAggregator; this._eventAggregator.GetEvent <ConnectedEvent>().Subscribe(this.OnConnected); this._regionManager = regionManager; this._signalrProxy = signalrProxy; }
public HubContentSessionsViewModel(IDcProfile profile, IEventAggregator eventAggregator, IDcSignalrProxy signalrProxy) { this.Profile = profile; this._signalrProxy = signalrProxy; this._eventAggregator = eventAggregator; this.NewSpaceSessionPopupRequest = new InteractionRequest <INewSpaceSessionPopup>(); this.AddSessionCommand = new DelegateCommand(this.OnAddSession); this.DeleteSessionCommand = new DelegateCommand(this.OnDeleteSession); this.SelectedSessionChangedCommand = new DelegateCommand(this.OnSelectedSessionChanged); }
/// <summary> /// The constructor /// </summary> /// <param name="profile"></param> public DisplayViewModel(IDcProfile profile, IEventAggregator eventAggregator, IDcSignalrProxy signalrProxy) { this._profile = profile; this._eventAggregator = eventAggregator; this._signalrProxy = signalrProxy; this.DroppedOnCommand = new DelegateCommand <SourceDropArgs>(this.OnDroppedOn); this.SourcePannedCommand = new DelegateCommand <SourceInstanceArgs>(this.OnSourcePanned); this.SourceResizedCommand = new DelegateCommand <SourceInstanceArgs>(this.OnSourceResized); this.SourceBringToFrontCommand = new DelegateCommand <SourceInstanceArgs>(this.OnSourceBringToFront); this.SourceSendToBackCommand = new DelegateCommand <SourceInstanceArgs>(this.OnSourceSendToBack); this.SourceRemoveCommand = new DelegateCommand <SourceInstanceArgs>(this.OnSourceRemove); this._eventAggregator.GetEvent <SelectedSessionChangedEvent>().Subscribe(this.OnSelectedSessionChanged); }