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));
        }
コード例 #2
0
 public static CsvDownloadOutputSettings Create(Encoding encoding, TabularOutputDestination destination)
 {
     CSVOutputEncodingValidator.Validate(encoding);
     return(new CsvDownloadOutputSettings(encoding, destination));
 }
コード例 #3
0
 private CsvDownloadOutputSettings(Encoding encoding, TabularOutputDestination destination)
 {
     Encoding    = encoding;
     Destination = destination;
 }