Exemplo n.º 1
0
 public ListWindow()
 {
     students = new ObservableCollection <Student>();
     InitializeComponent();
     DataContext = this;
     FillList(StudentData.getAllStudents());
 }
Exemplo n.º 2
0
        //public event PropertyChangedEventHandler PropertyChanged;

        //public List ProfStListProp
        //{
        //    get { }
        //    set
        //    {
        //    }
        //}

        public void  loadStudentList()
        {
            stDict = StudentData.getAllStudents();
            foreach (Student st in stDict.Values)
            {
                strudentsOC.Add(st);
            }
        }
Exemplo n.º 3
0
 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));
     }
 }