예제 #1
0
 public FormModel()
 {
     CurrentPerson = new PersonModel();
     People        = new ObservableCollection <PersonModel>();
     AddCommand    = new Command(ExecuteAddCommand);
 }
예제 #2
0
 private void ExecuteAddCommand(object obj)
 {
     People.Add(CurrentPerson);
     CurrentPerson = new PersonModel();
 }