Beispiel #1
0
 /// <summary>
 /// Carica i dati della griglia Eventi
 /// </summary>
 public override void LoadData()
 {
     using (databaseContext = CreateDatabaseContext())
     {
         manager = new EventiManagerNew(databaseContext);
         var events = manager.GetPagedEventsList(startPage, pageSize);
         grdEventi.DataSource = events;
     }
 }
Beispiel #2
0
 public ControlStampeEventi()
 {
     InitializeComponent();
     if (!string.IsNullOrWhiteSpace(HolonetConnectionString))
     {
         using (databaseContext = CreateDatabaseContext())
         {
             manager = new EventiManagerNew(databaseContext);
             var events = manager.GetPagedEventsList(startPage, pageSize);
             grdEventi.DataSource = events;
         }
     }
 }