public ListWindow() { students = new ObservableCollection <Student>(); InitializeComponent(); DataContext = this; FillList(StudentData.getAllStudents()); }
//public event PropertyChangedEventHandler PropertyChanged; //public List ProfStListProp //{ // get { } // set // { // } //} public void loadStudentList() { stDict = StudentData.getAllStudents(); foreach (Student st in stDict.Values) { strudentsOC.Add(st); } }
private void Button_Click(object sender, RoutedEventArgs e) { if (groupField.Text == "") { FillList(StudentData.getAllStudents()); } else { int group; Int32.TryParse(groupField.Text, out group); FillList(StudentData.getStudentsFromGroup(group)); } }