Example #1
0
 private void Submit()
 {
     Student.JoiningDate = DateTime.Today.Date;
     Students.Add(Student);
     Student = new Student();
 }
Example #2
0
 public ViewModel()
 {
     Student  = new Student();
     Students = new ObservableCollection <Student>();
     Students.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(Students_CollectionChanged);
 }