private void dgDailyRateReport_DoubleClick(object sender, EventArgs e) { try { if (dgDailyRateReport.CurrentRow.Index != -1 && dgDailyRateReport.CurrentRow.Cells[1].Value != null) { var lID = Convert.ToInt32(dgDailyRateReport.CurrentRow.Cells[0].Value); DailyGoldRates acc = new DailyGoldRates(passedUname, lID, 1); acc.ShowDialog(); dataGridBind(); } } catch (Exception x) { } }
private void btnEnterRates_Click(object sender, EventArgs e) { DailyGoldRates dr = new DailyGoldRates(passedUname, 0, 1); dr.ShowDialog(); }