private void departmentTreeView_AfterSelect(object sender, TreeViewEventArgs e) { //checkEmployeeDeleted = false; departmentTreeView.ExpandNodes(true); //delete = 0;// chon tim kiem theo danh sach nhan vien dang lam viec if (delete == 0) { dsEmployee = employeeDO.GetEmployeeByDepartmentInsurance((int)departmentTreeView.SelectedNode.Tag); } else if (delete == 1) { dsEmployee = employeeDO.GetDeletedEmployeeInsurance((int)departmentTreeView.SelectedNode.Tag); } PopulateEmployeeListView(); // btnAdd.Visible = true; // btnDelete.Visible = true; // btnRestore.Visible = false; // btnPermanentDelete.Visible = false; }
private void departmentTreeView_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) { departmentTreeView.ExpandNodes(true); PopulateEmployeeCombo((int)e.Node.Tag); }