コード例 #1
0
        /// <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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
 public DcSignalrProxy(IEventAggregator eventAggregator, IDcProfile profile)
 {
     this._eventAggregator = eventAggregator;
     this._profile         = profile;
 }