private void btnStock_Click(object sender, EventArgs e) { if (dgvList.Rows.Count > 0) { this.Visible = false; frmStock stock = new frmStock(Convert.ToInt32(dgvList.SelectedRows[0].Cells[0].Value)); stock.ShowDialog(); this.Visible = true; } }
private void btnProfitloss_Click(object sender, EventArgs e) { frmStock frm = new frmStock(); frm.ShowDialog(); }
private statsComponent myStatsComponent; // поле для компонента по отрисовке графиков public void ShowFrm() // показываем форму { myFormStock.frmStock_Load(myDbProvider); myFormStock.ShowDialog(); }