public override void LoadData() { using (databaseContext = CreateDatabaseContext()) { HoloDischiManager manager = new HoloDischiManager(databaseContext); var dischi = manager.GetPagedDisksList(startPage, pageSize); grdDischi.DataSource = dischi; } }
private void LoadData() { if (codEvento != null) { using (context = CreateDatabaseContext()) { HoloDischiManager manager = new HoloDischiManager(context); grdHoloDisk.DataSource = manager.GetPagedDisksList(startPage, pageSize); } } }