public XmppLogViewModel(Dispatcher dispatcher, XmppLogView view)
        {
            _dipatcher = dispatcher;
            _view = view;

            _xmppConnection = ((App)App.Current).XmppConnection;
            _xmppConnection.OnReadXml += XmppReadXmlHandler;
            _xmppConnection.OnWriteXml += XmppWriteXmlHandler;
            _view.Closed += new EventHandler(ViewClosedHandler);
        }
Beispiel #2
0
        public void OpenXmppLogView()
        {
            if (_xmppLogView != null && _xmppLogView.IsLoaded)
            {
                _xmppLogView.WindowState = System.Windows.WindowState.Normal;
                _xmppLogView.Activate();
                return;
            }

            _xmppLogView = new XmppLogView();
            _xmppLogView.Show();
            _xmppLogView.Activate();
        }