Beispiel #1
0
        private void LoadGrid()
        {
            OperatorHandler h = new OperatorHandler();

            IList l = h.GetAll();

            gridControl1.DataSource = l;
        }
Beispiel #2
0
        private void LoadListaOperatori()
        {
            lstOp.Items.Clear();

            OperatorHandler h = new OperatorHandler();

            foreach (Operator item in h.GetAll())
            {
                lstOp.Items.Add(item);
            }
        }
Beispiel #3
0
        private void LoadComboOperatori()
        {
            //preparo la combo delle zone
            cboOp.Properties.Items.Clear();

            OperatorHandler h = new OperatorHandler();

            //la riempio
            cboOp.Properties.Items.Add("");
            cboOp.Properties.Items.AddRange(h.GetAll());

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