Exemplo n.º 1
0
 private void education_DoubleClick(object sender, EventArgs e)
 {
     if (education.SelectedIndex != -1)
     {
         Employees_education educationItem = education.SelectedItem as Employees_education;
         // new Education(educationItem).Show();
     }
 }
Exemplo n.º 2
0
 private void button6_Click(object sender, EventArgs e)
 {
     if (education.SelectedIndex != -1)
     {
         Employees_education educationItem = education.SelectedItem as Employees_education;
         db.Employees_education.Remove(educationItem);
         db.SaveChanges();
         education.DataSource = db.Employees_education.Where(x => x.id_employees == id_employees).ToList();
     }
 }