private void AlertAddressCsvImportButton_Click(object sender, EventArgs e) { var importAction = new CsvImportAndExport(); var filePath = importAction.ImportCsv(); if (filePath != null) { try { var importData = new BindingSource( importAction.ReadCsv <AlertAddress>(importAction.ParseCsv <AlertAddressMap>(filePath)), string.Empty); foreach (var data in importData) { BindableAlertAddressList.Add(data); } MessageBox.Show("インポートが完了しました。"); } catch (Exception) { MessageBox.Show("インポートに失敗しました。"); } } }
private void AutoCcBccRecipientExportCsvButton_Click(object sender, EventArgs e) { var exportAction = new CsvImportAndExport(); exportAction.CsvExport <AutoCcBccRecipientMap>(BindableAutoCcBccRecipientList, "自動CCBCC追加宛先リスト.csv"); }
private void AutoCcBccKeywordExportButton_Click(object sender, EventArgs e) { var exportAction = new CsvImportAndExport(); exportAction.CsvExport <AutoCcBccKeywordMap>(BindableAutoCcBccKeywordList, "自動CCBCC追加キーワードリスト.csv"); }
private void AlertAddressCsvExportButton_Click(object sender, EventArgs e) { var exportAction = new CsvImportAndExport(); exportAction.CsvExport <AlertAddressMap>(BindableAlertAddressList, "警告アドレス.csv"); }
private void AlertKeywordAndMessageCsvExportButton_Click(object sender, EventArgs e) { var exportAction = new CsvImportAndExport(); exportAction.CsvExport <AlertKeywordAndMessageMap>(BindableAlertKeywordAndMessageList, "警告キーワードと警告文.csv"); }
private void NameAndDomainsCsvExportButton_Click(object sender, EventArgs e) { var exportAction = new CsvImportAndExport(); exportAction.CsvExport <NameAndDomainsMap>(BindableNameAdnDomainList, "名称とドメインのリスト.csv"); }
private void WhitelistCsvExportButton_Click(object sender, EventArgs e) { var exportAction = new CsvImportAndExport(); exportAction.CsvExport <WhitelistMap>(BindableWhitelist, "ホワイトリスト.csv"); }