public CallViewModel(CallView callView)
 {
     curCallView       = callView;
     EndCallCMD        = new RelayCommand(EndCall);
     BackCommand       = new RelayCommand(BackToMain);
     HideRatingViewCMD = new RelayCommand(HideRatingView);
     SendFeedBackCMD   = new RelayCommand(this.SendFeedBack, this.CanSendFeedBack);
     KeyboardCMD       = new RelayCommand(ShowHideKeyboard);
     DtmfCMD           = new RelayCommand(SendDTMF);
     spark             = ApplicationController.Instance.CurSparkManager.CurSpark;
 }
 public CallViewModel(CallView callView)
 {
     curCallView       = callView;
     EndCallCMD        = new RelayCommand(EndCall);
     BackCommand       = new RelayCommand(BackToMain);
     HideRatingViewCMD = new RelayCommand(HideRatingView);
     SendFeedBackCMD   = new RelayCommand(this.SendFeedBack, this.CanSendFeedBack);
     KeyboardCMD       = new RelayCommand(ShowHideKeyboard);
     DtmfCMD           = new RelayCommand(SendDTMF);
     StopShareCMD      = new RelayCommand(StopShare);
     spark             = ApplicationController.Instance.CurSparkManager.CurSpark;
     shareSourceList   = new ObservableCollection <ShareSource>();
 }
Example #3
0
        public void ChangeState(State state)
        {
            Application.Current.Dispatcher.Invoke(() => {
                switch (state)
                {
                case State.Main:
                    this.ShowView(new MainView(), WorkSpace.Main);
                    break;

                case State.LoginByJWT:
                    this.ShowView(new JWTLoginView(), WorkSpace.Main);
                    break;

                case State.VideoAudioSetup:
                    this.ShowView(new VideoAudioSetupView(), WorkSpace.Right);
                    break;

                case State.IntiateCall:
                    this.ShowView(new InitiateCallView(), WorkSpace.Right);
                    break;

                case State.Call:
                    if (CurCallView == null)
                    {
                        CurCallView = new CallView();
                    }
                    this.ShowView(CurCallView, WorkSpace.Main);
                    break;

                case State.LoginByOAuth:
                    this.ShowView(new OAuthLoginView(), WorkSpace.Main);
                    break;

                case State.PreLogin:
                    this.ShowView(new PreLoginView(), WorkSpace.Main);
                    break;

                case State.WaitingCall:
                    this.ShowView(new WaitingCallView(), WorkSpace.Right);
                    break;

                case State.SendFeedBack:
                    this.ShowView(new FeedBackView(), WorkSpace.Right);
                    break;

                case State.VideoCodecLicense:
                    this.ShowView(new VideoCodecLicenseView(), WorkSpace.Main);
                    break;
                }
            });
        }
 public CallViewModel(CallView callView) : base()
 {
     curCallView       = callView;
     EndCallCMD        = new RelayCommand(EndCall);
     BackCommand       = new RelayCommand(BackToMain);
     HideRatingViewCMD = new RelayCommand(HideRatingView);
     SendFeedBackCMD   = new RelayCommand(this.SendFeedBack, this.CanSendFeedBack);
     KeyboardCMD       = new RelayCommand(ShowHideKeyboard);
     DtmfCMD           = new RelayCommand(SendDTMF);
     StopShareCMD      = new RelayCommand(StopShare);
     webex             = ApplicationController.Instance.CurWebexManager.CurWebex;
     shareSourceList   = new ObservableCollection <ShareSource>();
     AuxStreamViews    = new ObservableCollection <AuxStreamView>();
     LoadAuxStreamViews();
 }