public void EditStudent(Student stud, int index) { this[index] = stud; this.OnCollectionChanged(new System.Collections.Specialized.NotifyCollectionChangedEventArgs( System.Collections.Specialized.NotifyCollectionChangedAction.Reset)); InputOutputXmlFile.ReplaceStudent(stud, index); }
public ListOfStudents() { foreach (Student stud in InputOutputXmlFile.getStudListFromFile()) { this.Add(stud); } }
public void DeleteStud(int index) { this.RemoveAt(index); InputOutputXmlFile.DeleteStudentFromFile(index); }
public void AddStudent(Student stud) { this.Add(stud); InputOutputXmlFile.AddStudToFile(stud); }