private void BtnSearchLinqPrefetchClick(object sender, EventArgs e) { OrganizationHelper.ShowEmployeesPlaceInOrganization(MetaSingletons.MetaData.Employee.Where(employee => employee.EmployeeID == SelectedEmployeeID) .WithPath(OrganizationHelper.GetManagesPrefetchPath()).Single(), tvOrganization.Nodes); }
private void btnSearch_Click(object sender, EventArgs e) { OrganizationHelper.ShowEmployeesPlaceInOrganization(new EmployeeEntity(SelectedEmployeeID, OrganizationHelper.GetManagesPrefetchPath()), tvOrganization.Nodes); }
private void buttonSearchNoPrefetch_Click(object sender, EventArgs e) { OrganizationHelper.ShowEmployeesPlaceInOrganization(new EmployeeEntity(SelectedEmployeeID), tvOrganization.Nodes); }
/// <summary> /// Stored Procedure Version /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void btnSearchSP_Click(object sender, EventArgs e) { OrganizationHelper.ShowEmployeesPlaceInOrganization(SelectedEmployeeID, tvOrganization.Nodes); }