예제 #1
0
        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("インポートに失敗しました。");
                }
            }
        }
예제 #2
0
        private void AutoCcBccRecipientExportCsvButton_Click(object sender, EventArgs e)
        {
            var exportAction = new CsvImportAndExport();

            exportAction.CsvExport <AutoCcBccRecipientMap>(BindableAutoCcBccRecipientList, "自動CCBCC追加宛先リスト.csv");
        }
예제 #3
0
        private void AutoCcBccKeywordExportButton_Click(object sender, EventArgs e)
        {
            var exportAction = new CsvImportAndExport();

            exportAction.CsvExport <AutoCcBccKeywordMap>(BindableAutoCcBccKeywordList, "自動CCBCC追加キーワードリスト.csv");
        }
예제 #4
0
        private void AlertAddressCsvExportButton_Click(object sender, EventArgs e)
        {
            var exportAction = new CsvImportAndExport();

            exportAction.CsvExport <AlertAddressMap>(BindableAlertAddressList, "警告アドレス.csv");
        }
예제 #5
0
        private void AlertKeywordAndMessageCsvExportButton_Click(object sender, EventArgs e)
        {
            var exportAction = new CsvImportAndExport();

            exportAction.CsvExport <AlertKeywordAndMessageMap>(BindableAlertKeywordAndMessageList, "警告キーワードと警告文.csv");
        }
예제 #6
0
        private void NameAndDomainsCsvExportButton_Click(object sender, EventArgs e)
        {
            var exportAction = new CsvImportAndExport();

            exportAction.CsvExport <NameAndDomainsMap>(BindableNameAdnDomainList, "名称とドメインのリスト.csv");
        }
예제 #7
0
        private void WhitelistCsvExportButton_Click(object sender, EventArgs e)
        {
            var exportAction = new CsvImportAndExport();

            exportAction.CsvExport <WhitelistMap>(BindableWhitelist, "ホワイトリスト.csv");
        }