void SetComboBox() { Combobox.Items.Clear(); List <Family> ListFamilies = ControllerFurniture.GetAllFamily(); foreach (Family Family in ListFamilies) { string FamilyName = Family.GetSetFamilyName; Combobox.Items.Add(FamilyName); } }
private void InitTextBox() { // Init Brand List <Brand> ListBrand = ControllerFurniture.GetAllBrands(); foreach (Brand Brand in ListBrand) { ComboBoxBrand.Items.Add(Brand); } // Init Family List <Family> ListFamily = ControllerFurniture.GetAllFamily(); foreach (Family Family in ListFamily) { ComboBoxFamily.Items.Add(Family); } }