Пример #1
0
        private void ConfManagementWindow_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            log.InfoFormat("ConfManagementWindow_IsVisibleChanged: {0}", this.Visibility);
            ConfManagementWindow_StateChanged(null, new EventArgs());

            if (Visibility.Visible == this.Visibility)
            {
                //_confCtrlView.UpdateData();

                log.Info("show new conf management list");
                if (null != _confCtrlView)
                {
                    _confCtrlView.Dispose();
                }

                _confCtrlView = new EasyVideoWin.View.WebBrowserWrapperView(Enums.WebBrowserUrlType.CONF_MANAGEMENT, this);
                CurrentView   = _confCtrlView;
            }
            else
            {
                //_confCtrlView.ClearConfManagementCache();
                log.Info("destroy conf management list");
                CurrentView = null;
                if (null != _confCtrlView)
                {
                    _confCtrlView.Dispose();
                    _confCtrlView = null;
                }
            }
        }
Пример #2
0
        public ConfManagementWindow() : base(INITIAL_WIDTH, INITIAL_HEIGHT)
        {
            InitializeComponent();
            this.DataContext = this;

            this.Closing          += ConfManagementWindow_Closing;
            this.IsVisibleChanged += ConfManagementWindow_IsVisibleChanged;

            this.StateChanged += ConfManagementWindow_StateChanged;

            CallController.Instance.CallStatusChanged += OnCallStatusChanged;
            _confCtrlView = new EasyVideoWin.View.WebBrowserWrapperView(Enums.WebBrowserUrlType.CONF_MANAGEMENT, this);
            CurrentView   = _confCtrlView;
        }