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

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

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

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

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

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

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