Exemplo n.º 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));
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public FileDesignBuffer(IDataphoria dataphoria, string fileName)
     : this(dataphoria, FileDesignBuffer.GetLocatorName(fileName))
 {
 }