예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PlayOcx = ((ivs_cs_demo.PlayOcxUserControl)(target));
                return;

            case 2:
                this.logInLogOutControls = ((ivs_cs_demo.LogInLogOutControls)(target));
                return;

            case 3:
                this.layOutManageUserControls = ((ivs_cs_demo.LayOutManageUserControls)(target));
                return;

            case 4:
                this.liveVideoPtzUserControls = ((ivs_cs_demo.LiveVideoPtzUserControls)(target));
                return;

            case 5:
                this.recordUserControls = ((ivs_cs_demo.RecordUserControls)(target));
                return;

            case 6:
                this.replayUserControls = ((ivs_cs_demo.ReplayUserControls)(target));
                return;

            case 7:
                this.talkAndBroadcastUserControls = ((ivs_cs_demo.TalkAndBroadcastUserControls)(target));
                return;

            case 8:
                this.downloadAndCaptureUserControls = ((ivs_cs_demo.DownloadAndCaptureUserControls)(target));
                return;

            case 9:
                this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 10:
                this.LogInfo = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.OperationInfo = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        public TalkAndBroadcastViewModel(TalkAndBroadcastUserControls window)
        {
            talkAndBroadcastUserControls = window;

            StartVoiceTalkbackCommand    = new DelegateCommand(StartVoiceTalkbackProcess);
            StopVoiceTalkbackCommand     = new DelegateCommand(StopVoiceTalkbackProcess);
            AddBroadcastDeviceCommand    = new DelegateCommand(AddBroadcastDeviceProcess);
            DeleteBroadcastDeviceCommand = new DelegateCommand(DeleteBroadcastDeviceProcess);
            StartRealBroadcastCommand    = new DelegateCommand(StartRealBroadcastProcess);
            StopRealBroadcastCommand     = new DelegateCommand(StopRealBroadcastProcess);
            StartFileBroadcastCommand    = new DelegateCommand(StartFileBroadcastProcess);
            StopFileBroadcastCommand     = new DelegateCommand(StopFileBroadcastProcess);
            Copy = new DelegateCommand(CopyProcess);
        }