Beispiel #1
0
        static void LoadUsersThread()
        {
            Thread y = new Thread(LoadCertificateAgents);

            y.Start();
            AgentDataAccess db = new AgentDataAccess();

            globalListAgents = db.LoadAllAgents();
        }
Beispiel #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()));
     }
 }