public void RefreshCurrent() { string currentLibrary = Dataphoria.GetCurrentLibraryName(); foreach (LibraryNode node in Nodes) { node.Current = node.LibraryName == currentLibrary; } }
public void SaveAsDocument() { DocumentDesignBuffer buffer; DocumentDesignBuffer current = _buffer as DocumentDesignBuffer; if (current != null) { buffer = current.PromptForBuffer(_designer); } else { buffer = Dataphoria.PromptForDocumentBuffer(_designer, Dataphoria.GetCurrentLibraryName(), String.Empty); } ValidateBuffer(buffer); Save(buffer); if (AfterSaveAsDocument != null) { AfterSaveAsDocument(this, buffer); } }