Example #1
0
        //*******************************************************************
        //*                                                                 *
        //*                             ALEX                                *
        //*                                                                 *
        //*******************************************************************



        // STEP 1
        public void GetProductsSuppliers()
        {
            List <ProductsSuppliers> productssupplierid = new List <ProductsSuppliers>();

            try
            {
                productssupplierid = ProductSupplierIdDB.GetProductsSupplierId();
                cboProductsSupplierrId.DataSource    = productssupplierid;
                cboProductsSupplierrId.DisplayMember = "ProductSupplierId";
                cboProductsSupplierrId.ValueMember   = "ProductSupplierId";
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, ex.GetType().ToString());
            }
        }
Example #2
0
 // STEP 2
 public void GetPackages()
 {
     try
     {
         packages = PackagesDB.GetPackages();
         cboPackageId.DataSource    = packages;
         cboPackageId.DisplayMember = "PackageId";
         cboPackageId.ValueMember   = "PackageId";
         packages2               = PackagesDB.GetPackages();
         cboPkgPPS.DataSource    = packages2;
         cboPkgPPS.DisplayMember = "PackageId";
         cboPkgPPS.ValueMember   = "PackageId";
         List <ProductsSuppliers> productssupplierid = new List <ProductsSuppliers>();
         productssupplierid     = ProductSupplierIdDB.GetProductsSupplierId();
         cboPSPPS.DataSource    = productssupplierid;
         cboPSPPS.DisplayMember = "ProductSupplierId";
         cboPSPPS.ValueMember   = "ProductSupplierId";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.GetType().ToString());
     }
 }