示例#1
0
        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";
        }
示例#2
0
 public PersonListViewModel()
 {
     PersonList  = PersonDataHelper.GetPersons();
     _resultList = PersonList;
 }