private static CsvDownloadOutputSettings LoadOutputSettings()
        {
            Encoding encoding = Properties.Settings.Default.CSVUTF8 ?
                                TabularOutputEncoding.UTF8 : TabularOutputEncoding.SJIS;
            TabularOutputDestination destination = Properties.Settings.Default.CSVIsFile ? TabularOutputDestination.NewCsvFile : TabularOutputDestination.NewWorksheet;

            return(CsvDownloadOutputSettings.Create(encoding, destination));
        }
 private CsvDownloadParameters(string ticker, PeriodRange <FiscalQuarterPeriod> range, CsvDownloadOutputSettings outputSettings)
 {
     Ticker         = ticker;
     Range          = range;
     OutputSettings = outputSettings;
 }
        public static CsvDownloadParameters Create(string ticker, FiscalQuarterPeriod from, FiscalQuarterPeriod to, CsvDownloadOutputSettings outputSettings)
        {
            JpTickerValidator.Validate(ticker);
            var range = PeriodRange <FiscalQuarterPeriod> .Create(from, to);

            return(new CsvDownloadParameters(ticker, range, outputSettings));
        }