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); } }
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); } }
public void InternalDetachView(IPoderosaDocument document, IPoderosaView view) { Debug.Assert(document==_document); _view.Attach(this, null); _view = null; }
public void InternalDetachView(IPoderosaDocument document, IPoderosaView view) { Debug.Assert(document == _document); _view.Attach(this, null); _view = null; }