private void btnOpenFund_Click(object sender, EventArgs e) { int index = dgvFunds.CurrentCell.RowIndex; Guid relationalManagersFundsId = new Guid(dgvFunds.Rows[index].Cells[0].Value.ToString()); Guid fundId = new Guid(dgvFunds.Rows[index].Cells[1].Value.ToString()); lblSelectedFund.Text = dgvFunds.Rows[index].Cells[2].Value.ToString(); frmFund _frmFund = new frmFund(frmMain_Parent, fundId); }
private void dgvFunds_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (FundId == null) { MessageBox.Show("You have not selected a fund to open.", "Error", MessageBoxButtons.OK); return; } else { Guid fundId = new Guid(FundId.ToString()); frmFund fundForm = new frmFund(mf_parent, fundId); } }
private void btnOpenFund_Click(object sender, EventArgs e) { if (FundId == null) { MessageBox.Show("You have not selected a fund to open.", "Error", MessageBoxButtons.OK); return; } else { Guid fundId = new Guid(FundId.ToString()); frmFund fundForm = new frmFund(mf_parent, fundId); } }
private void button3_Click(object sender, EventArgs e) { int index = dgvFunds.CurrentRow.Index; _relationalFundsPlansId = new Guid(dgvFunds.Rows[index].Cells[0].Value.ToString()); Guid fundId = new Guid(dgvFunds.Rows[index].Cells[1].Value.ToString()); string benchMark = null; foreach (DataRow dr in ISP.Business.Entities.Benchmarks.GetAssociatedFromRelational_Funds_Plans(_relationalFundsPlansId).Rows) { benchMark = dr["BenchMark"].ToString(); } frmFund fundForm = new frmFund(frmMain_Parent, fundId, benchMark); }