private void btnAddEmployee_Click(object sender, EventArgs e) { var form = new AddEditEmployee(); form.ShowDialog(); UpdateGrids(); }
private void editEmployeeToolStripMenuItem_Click(object sender, EventArgs e) { var memberId = Convert.ToInt32(dgvMembers.CurrentRow.Cells[0].Value); var form = new AddEditEmployee(memberId); form.ShowDialog(); UpdateGrids(); }