public MainWindowViewModel() { PersonList = PersonDataHelper.GetPersons(); //ObservableCollection<string> userNameList = new ObservableCollection<string>(); //foreach (Person p in PersonList) //{ // userNameList.Add(p.Name); //} //_combList = userNameList; BdColor = "Black"; _lbError = "Hidden"; }
public PersonListViewModel() { PersonList = PersonDataHelper.GetPersons(); _resultList = PersonList; }