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