예제 #1
0
 private void LoadData()
 {
     AdministratorRepository ARepo = new AdministratorRepository();
     SalesmanRepository SRepo = new SalesmanRepository();
     var SaleList = SRepo.GetSaleToDashboard();
     if (chkAddAdmin.Checked)
     {
         var listAdmin = ARepo.GetAdminToDashboard();
         foreach (var item in listAdmin)
         {
             SaleList.Add(item);
         }
     }
     grdSalemen.DataSource = SaleList;
     grdSalemen.Rebind();
 }