예제 #1
0
        public override bool Equals(object objectValue)
        {
            DocumentDesignBuffer buffer = objectValue as DocumentDesignBuffer;

            if ((buffer != null) && (buffer.LibraryName == LibraryName) && (buffer.DocumentName == DocumentName))
            {
                return(true);
            }
            else
            {
                return(base.Equals(objectValue));
            }
        }
예제 #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);
            }
        }
예제 #3
0
 public DocumentDesignBuffer(IDataphoria dataphoria, string libraryName, string documentName)
     : this(dataphoria, new DebugLocator(DocumentDesignBuffer.GetLocatorName(libraryName, documentName), 1, 1))
 {
 }