Exemplo n.º 1
0
        public void CargarComboBox()
        {
            if (esCliente == 1)
            {
                this.comboBox.DataSource = NClientes.ListaClientes();
            }
            else if (esEmpleado == 1)
            {
                this.comboBox.DataSource = NEmpleados.ListaEmpleados();
            }
            else if (esProducto == 1)
            {
                this.comboBox.DataSource = NProductos.ListaProductos();
            }

            this.comboBox.ValueMember   = "ID";
            this.comboBox.DisplayMember = "NOMBRE";
        }
 public void CargarProductos()
 {
     this.comboBoxProductos.DataSource    = NProductos.ListaProductos();
     this.comboBoxProductos.ValueMember   = "ID";
     this.comboBoxProductos.DisplayMember = "NOMBRE";
 }