Beispiel #1
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";
        }
Beispiel #2
0
        public List <Customer> GetAllCustomers()
        {
            GetDataLogic logic = new GetDataLogic();

            return(logic.GetAllCustomers());
        }