/// <summary> /// When a row is double clicked, this method is called, opening the Account Edit Form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DataTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } int Id = Int32.Parse(DataTable.Rows[e.RowIndex].Cells[0].Value.ToString()); using (AccountEditForm Form = new AccountEditForm(Id)) { Form.ShowDialog(); BuildList(); } }
/// <summary> /// When a row is double clicked, this method is called, opening the Account Edit Form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DataTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) return; int Id = Int32.Parse(DataTable.Rows[e.RowIndex].Cells[0].Value.ToString()); AccountEditForm Form = new AccountEditForm(Id); Form.ShowDialog(); BuildList(); }