Exemplo n.º 1
0
		public ControlEventi()
        {
            InitializeComponent();
            if (!string.IsNullOrWhiteSpace(HolonetConnectionString))
            {
                manager = new EventiManager(HolonetConnectionString);
                var events = manager.GetPagedEventsList(startPage, pageSize);
                grdEventi.DataSource = events;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Carica i dati della griglia Eventi
        /// </summary>
        public override void LoadData()
        {
            CheckManager();
            if (manager != null)
            {
                var events = manager.GetPagedEventsList(startPage, pageSize);
				//BindingList<Evento> lista = new BindingList<Evento>(events);
                grdEventi.DataSource = events;
				//grdEventi.DataSource = lista;
            }
        }