コード例 #1
0
 private void BtnSearchLinqPrefetchClick(object sender, EventArgs e)
 {
     OrganizationHelper.ShowEmployeesPlaceInOrganization(MetaSingletons.MetaData.Employee.Where(employee => employee.EmployeeID == SelectedEmployeeID)
                                                         .WithPath(OrganizationHelper.GetManagesPrefetchPath()).Single(),
                                                         tvOrganization.Nodes);
 }
コード例 #2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     OrganizationHelper.ShowEmployeesPlaceInOrganization(new EmployeeEntity(SelectedEmployeeID, OrganizationHelper.GetManagesPrefetchPath()), tvOrganization.Nodes);
 }
コード例 #3
0
 private void buttonSearchNoPrefetch_Click(object sender, EventArgs e)
 {
     OrganizationHelper.ShowEmployeesPlaceInOrganization(new EmployeeEntity(SelectedEmployeeID), tvOrganization.Nodes);
 }
コード例 #4
0
 /// <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);
 }