Example #1
0
        private void Limpiar()
        {
            ProviderControlles provCont = new ProviderControlles();

            grdcList.DataSource = provCont.getProvider();
            txtName.Text        = "";
        }
Example #2
0
        private void FrmProduct_Load(object sender, EventArgs e)
        {
            BrandController branCont = new BrandController();

            cbMarca.DataSource    = branCont.getBrand();
            cbMarca.DisplayMember = "NameBrand";
            cbMarca.ValueMember   = "IdBrand";
            ProviderControlles proviCont = new ProviderControlles();

            cbProveedor.DataSource    = proviCont.getProvider();
            cbProveedor.DisplayMember = "NameProvider";
            cbProveedor.ValueMember   = "IdProvider";
            limpiar();
        }
Example #3
0
        private void Limpiar()
        {
            listProd.Clear();
            grdcDetalles.DataSource = null;
            txtNoFactura.Text       = "";
            dtFechaFactura.DateTime = DateTime.Now;

            cbBodega.DataSource    = warCont.getWarehouse();
            cbBodega.DisplayMember = "Name";
            cbBodega.ValueMember   = "IdWarehouse";

            cbProveedor.DataSource    = provCont.getProvider();
            cbProveedor.DisplayMember = "NameProvider";
            cbProveedor.ValueMember   = "IdProvider";
        }