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

            if (buffer != null && String.Equals(buffer.FileName, FileName, StringComparison.OrdinalIgnoreCase))
            {
                return(true);
            }
            else
            {
                return(base.Equals(objectValue));
            }
        }
예제 #2
0
        public void SaveAsFile()
        {
            FileDesignBuffer buffer;
            FileDesignBuffer current = _buffer as FileDesignBuffer;

            if (current != null)
            {
                buffer = current.PromptForBuffer(_designer);
            }
            else
            {
                buffer = Dataphoria.PromptForFileBuffer(_designer, String.Empty);
            }
            ValidateBuffer(buffer);
            Save(buffer);
        }
예제 #3
0
 public FileDesignBuffer(IDataphoria dataphoria, string fileName)
     : this(dataphoria, FileDesignBuffer.GetLocatorName(fileName))
 {
 }