//表示前 private void Form_mailTempleteList_Load(object sender, EventArgs e) { _columnSorter = new Class_ListViewColumnSorter(); m_mailTempleteList.ListViewItemSorter = _columnSorter; List <mailTempleteDS> templeteList = new List <mailTempleteDS>(); Dictionary <string, string> param_dict = new Dictionary <string, string>(); Class_Detaget dg = new Class_Detaget(); //メールテンプレートの取得 templeteList = dg.selectMailtemplete(param_dict, con); m_To_list.Columns.Add("アドレス名", 120); m_To_list.Columns.Add("アドレス", 120); m_To_list.Columns.Add("区分", 20); m_Cc_list.Columns.Add("アドレス名", 120); m_Cc_list.Columns.Add("アドレス", 120); m_Cc_list.Columns.Add("区分", 20); m_Bcc_list.Columns.Add("アドレス名", 120); m_Bcc_list.Columns.Add("アドレス", 120); m_Bcc_list.Columns.Add("区分", 20); //インシデントメールの場合 if (incidentmail_flg) { m_OK.Enabled = false; this.splitContainer1.SplitterDistance = 32; } m_subject.Text = mailTitle; //アカウント m_account.Text = System.Configuration.ConfigurationManager.AppSettings["mailsender_address"]; m_body.Text = mailBody; if ((mailTitle == "" || mailTitle == null) && (mailBody == "" || mailBody == null)) { disp_mailtemplete(templeteList); } }