private void addEmployee_Click(object sender, EventArgs e) { AddModifyEmployeeForm addModifyEmployeeForm = new AddModifyEmployeeForm(conn); addModifyEmployeeForm.ShowDialog(); populateView(); }
private void modifyEmployee_Click(object sender, EventArgs e) { if (employeesView.SelectedItems.Count > 0) { AddModifyEmployeeForm addModifyEmployeeForm = new AddModifyEmployeeForm(conn, (ListViewItem)employeesView.SelectedItems[0].Clone()); addModifyEmployeeForm.ShowDialog(); populateView(); } }