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