示例#1
0
        private void addEmployee_Click(object sender, EventArgs e)
        {
            AddModifyEmployeeForm addModifyEmployeeForm = new AddModifyEmployeeForm(conn);

            addModifyEmployeeForm.ShowDialog();
            populateView();
        }
示例#2
0
 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();
     }
 }