public void BindModelCB() { List <Models> AllModels = Treatments.InitModelsCB(); ModelCB.ItemsSource = AllModels; ModelCB.DisplayMemberPath = "Name"; ModelCB.SelectedValuePath = "ModelID"; }
public void InitListBox() { try { List <Models> ModelList = Treatments.InitModelsCB(); ModelsListBox.ItemsSource = ModelList; } catch (Exception MyEx) { MessageBox.Show("[Smart Generator] Error Occured:" + MyEx.Message); } }