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

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

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

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

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

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

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