private void treeView1_DoubleClick(object sender, EventArgs e) { if (treeView1.SelectedNode.Name != "root") { ListOfEmployees listOfEmployees = new ListOfEmployees(db, new Guid(treeView1.SelectedNode.Name)); listOfEmployees.Show(); } }
public void EmployeeInDepartment(Guid id) { ListOfEmployees listOfEmployees = new ListOfEmployees(db, id); listOfEmployees.Show(); }