コード例 #1
0
        private void LoadGrid()
        {
            BookingTypeHandler h = new BookingTypeHandler();

            IList l = h.GetAll();

            gridControl1.DataSource = l;
        }
コード例 #2
0
        private void LoadComboTipoPrenotazione()
        {
            //preparo la combo delle zone
            cboTipo.Properties.Items.Clear();

            BookingTypeHandler h = new BookingTypeHandler();

            //la riempio
            cboTipo.Properties.Items.AddRange(h.GetAll());

            //seleziono quella iniziale
            cboTipo.SelectedIndex = 0;
        }