コード例 #1
0
ファイル: LibraryNode.cs プロジェクト: laszlo-kiss/Dataphor
        public void RefreshCurrent()
        {
            string currentLibrary = Dataphoria.GetCurrentLibraryName();

            foreach (LibraryNode node in Nodes)
            {
                node.Current = node.LibraryName == currentLibrary;
            }
        }
コード例 #2
0
        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);
            }
        }