Пример #1
0
        public static List <Product> GetAllProduct()
        {
            List <Product> productList = new List <Product>();
            GetDataLogic   product     = new GetDataLogic();

            productList = product.GetAllProducts();
            return(productList);
        }
Пример #2
0
        public void LoadComboBox()
        {
            cmbEducation.DataSource    = logic.GetAllEducation();
            cmbEducation.ValueMember   = "IdEducation";
            cmbEducation.DisplayMember = "Name";


            cmbJobTitle.DataSource    = logic.GetAllOccupation();
            cmbJobTitle.ValueMember   = "IdOccupation";
            cmbJobTitle.DisplayMember = "Description";

            cmbSuburb.DataSource    = logic.GetAllSuburbs();
            cmbSuburb.ValueMember   = "IdSuburb";
            cmbSuburb.DisplayMember = "Name";

            cmbProName.DataSource    = logic.GetAllProducts();
            cmbProName.ValueMember   = "IdProduct";
            cmbProName.DisplayMember = "Name";

            cmbOrderCust.DataSource    = logic.GetAllCustomers();
            cmbOrderCust.ValueMember   = "IdCustomer";
            cmbOrderCust.DisplayMember = "Name";
        }
Пример #3
0
 public List <Product> GetAllProducts()
 {
     Business_Logic.GetDataLogic logic = new GetDataLogic();
     return(logic.GetAllProducts());
 }