private void toolStripButton_chart_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { Stock temp = Model_WatchList.list[dataGridView1.SelectedRows[0].Index].GetStockInstance(); // List<Stock> stockList = new List<Stock>(); // for (int i = 0; i < Model_WatchList.list.Count; i++) // { // stockList.Add(Model_WatchList.list[i].GetStockInstance()); // } Form_StockChart form_st = new Form_StockChart(temp); form_st.MdiParent = pointer_MainForm; form_st.Show(); } }
private void button_export_Click(object sender, EventArgs e) { Form_StockChart form_sc = new Form_StockChart(textBox_title.Text.Trim(), chartLines); form_sc.MdiParent = pointer_MainForm; form_sc.Show(); }
private void toolStripButton_stockChart_Click(object sender, EventArgs e) { try { string code = dataGridView1.Rows[dataGridView1.SelectedCells[0].RowIndex].Cells[0].FormattedValue.ToString(); string path = Config.STOCK_PATH_DEFAULT + @"\" + code + ".xml"; Stock stock = XMLHelper.StockFromXML(path); Form_StockChart form_st = new Form_StockChart(stock); form_st.MdiParent = pointer_MainForm; form_st.Show(); } catch (Exception ex) { LogHelper.GetLogger(typeof(MainForm)).FullLog(ex.ToString(), "IGNORE"); } }