static void LoadUsersThread() { Thread y = new Thread(LoadCertificateAgents); y.Start(); AgentDataAccess db = new AgentDataAccess(); globalListAgents = db.LoadAllAgents(); }
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())); } }