BF2Statistics.AccountListForm.DataTable_CellDoubleClick C# (CSharp) Method

DataTable_CellDoubleClick() private method

When a row is double clicked, this method is called, opening the Account Edit Form
private DataTable_CellDoubleClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
sender object
e System.Windows.Forms.DataGridViewCellEventArgs
return void
        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();
            }
        }