示例#1
0
        public void InternalAttachView(IPoderosaDocument document, IPoderosaView view)
        {
            Debug.Assert(document == _document);
            ViewBridge viewbridge = (ViewBridge)view.GetAdapter(typeof(ViewBridge));

            _view = viewbridge;
            viewbridge.Attach(this, _document);
            Debug.WriteLine("Replace DUMMYSESSION");

            //苦しい条件だが、Ctrl+Shiftならキャプション変更をテスト
            Keys m = Control.ModifierKeys;

            if (m == (Keys.Control | Keys.Shift))
            {
                _caption         += "P";
                _document.Caption = _caption;
                SessionManagerPlugin.Instance.RefreshDocumentStatus(document);
            }
        }
示例#2
0
        public void InternalAttachView(IPoderosaDocument document, IPoderosaView view) {
            Debug.Assert(document==_document);
            ViewBridge viewbridge = (ViewBridge)view.GetAdapter(typeof(ViewBridge));
            _view = viewbridge;
            viewbridge.Attach(this, _document);
            Debug.WriteLine("Replace DUMMYSESSION");

            //苦しい条件だが、Ctrl+Shiftならキャプション変更をテスト
            Keys m = Control.ModifierKeys;
            if(m==(Keys.Control|Keys.Shift)) {
                _caption += "P";
                _document.Caption = _caption;
                SessionManagerPlugin.Instance.RefreshDocumentStatus(document);
            }
        }
示例#3
0
 public void InternalDetachView(IPoderosaDocument document, IPoderosaView view) {
     Debug.Assert(document==_document);
     _view.Attach(this, null);
     _view = null;
 }
示例#4
0
 public void InternalDetachView(IPoderosaDocument document, IPoderosaView view)
 {
     Debug.Assert(document == _document);
     _view.Attach(this, null);
     _view = null;
 }