예제 #1
0
        private static void LoadCertificateAgents()
        {
            globalListCertificateAgents = StaticdbEntities.Education_Agent
                                          .ToList();

            UC_Certification.staticDataSource = UC_Certification.GetDataSourceStatic(globalListCertificateAgents.ToPagedList(1, globalListCertificateAgents.Count()));
        }
예제 #2
0
 static void LoadUsersThread()
 {
     //Thread y = new Thread(LoadCertificateAgents);
     //y.Start();
     using (AgentDataAccess dbRep = new AgentDataAccess())
     {
         globalListAgents = dbRep.LoadAllAgents();
         UC_Certification.staticDataSource = UC_Certification.GetDataSourceStatic(globalListAgents.ToPagedList(1, globalListAgents.Count()));
     }
 }