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);
            }
        }
 public DocumentDesignBuffer(IDataphoria dataphoria, string libraryName, string documentName)
     : this(dataphoria, new DebugLocator(DocumentDesignBuffer.GetLocatorName(libraryName, documentName), 1, 1))
 {
 }