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)); }
public static CsvDownloadOutputSettings Create(Encoding encoding, TabularOutputDestination destination) { CSVOutputEncodingValidator.Validate(encoding); return(new CsvDownloadOutputSettings(encoding, destination)); }
private CsvDownloadOutputSettings(Encoding encoding, TabularOutputDestination destination) { Encoding = encoding; Destination = destination; }