private void btnEdit_Click(object sender, EventArgs e) { CreateEditAccount EditAccountForm = new CreateEditAccount(1, grdAccounts.Rows[grdAccounts.CurrentCell.RowIndex].Cells[0].Value.ToString()); EditAccountForm.ShowDialog(); this.Update(); this.Refresh(); accountsGridLoad(); }
private void btnNew_Click(object sender, EventArgs e) { CreateEditAccount CreateAccountForm = new CreateEditAccount(0); CreateAccountForm.ShowDialog(); this.Update(); this.Refresh(); accountsGridLoad(); }