private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int code = CorpListManager.dtCache.Rows[e.RowIndex].Field <int>("corpCode"); var cc2 = new CandleChart2(code) { Size = new Size(780, 350), BackColor = Color.White }; this.AddOwnedForm(cc2); cc2.Show(); }
private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { int code = int.Parse(textBox1.Text); if (CorpListManager.CorpCache.Keys().Contains(code)) { var cc2 = new CandleChart2(code) { Size = new Size(780, 350), BackColor = Color.White }; this.AddOwnedForm(cc2); cc2.Show(); } //グラフの描画 // // Application.Run(new CandleChart2(code) { Size = new Size(780, 350), BackColor = Color.White }); } }