public void Show(IDocument document) { KVDocument kvdoc = document as KVDocument; if (kvdoc != null) { controlHostService.Show(kvdoc.DisplayControl); } }
public void Close(IDocument document) { KVDocument kvdoc = document as KVDocument; if (kvdoc != null) { controlHostService.UnregisterControl(kvdoc.DisplayControl); } }
public void Save(IDocument document, Uri uri) { KVDocument kvdoc = document as KVDocument; if (kvdoc != null) { kvdoc.Save(); } }
public bool Close(Control control) { KVDocument document = control.Tag as KVDocument; if (document != null) { return(documentService.Close(document)); } return(true); }
public IDocument Open(Uri uri) { KVDocument KVDoc = new KVDocument(uri); controlHostService.RegisterControl(KVDoc.DisplayControl, KVDoc.ControlInfo, this); KVDoc.KVTreeView.SelectionChanged += KVTreeView_SelectionChanged; KVDoc.OnRightClick += Control_MouseUp; return(KVDoc); }