예제 #1
0
        public void Export(IWriter writer, IQuoteFormatter formatter, DateTime start, DateTime end)
        {
            writer.ThrowIfNull("writer");
            formatter.ThrowIfNull("formatter");

            _formatter = formatter;
            DoExport(writer, start, end);
        }
예제 #2
0
        public void Import(IReader reader, IQuoteFormatter formatter)
        {
            reader.ThrowIfNull("reader");
            formatter.ThrowIfNull("formatter");

            _formatter = formatter;
            DoImport(reader);
        }
예제 #3
0
        public void Export(string exportFileName, DateTime start, DateTime end)
        {
            exportFileName.ThrowIfNull("exportFileName");

            _formatter = new QuoteFormatter();

            using (var writer = new CsvWriter(exportFileName))
            {
                DoExport(writer, start, end);
            }
        }