private void Form1_Load(object sender, EventArgs e) { ComboBox[] comboboxs = { comboBox2, comboBox3, comboBox4 }; config = new Config(config_file, comboboxs, textBox1, checkBox1, textBox2); config.InitLoad(); if (checkBox1.Checked) { textBox2.Enabled = true; } else { textBox2.Enabled = false; } //セルの内容に合わせて、行の高さが自動的に調節されるようにする dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; //セルのテキストを折り返して表示する dataGridView1.Columns["Column1"].DefaultCellStyle.WrapMode = DataGridViewTriState.True; dataGridView1.Columns["Column2"].DefaultCellStyle.WrapMode = DataGridViewTriState.True; dataGridView1.RowHeadersVisible = false; log = new PublicityLog(richTextBox2); rich_text_box_context_menu.Items.Add("コピー", null, RitchTextBox_ContextMenu_Click_Copy); rich_text_box_context_menu.Items.Add("全てコピー", null, RitchTextBox_ContextMenu_Click_CopyAll); data_grid_view_context_menu.Items.Add("コピー", null, DataGridView_ContextMenu_Click_Copy); data_grid_view_context_menu.Items.Add("列を全てコピー", null, DataGridView_ContextMenu_Click_CopyVLine); }
public PublicityAnalyze(PublicityLog log) { this.log = log; }