コード例 #1
0
 private void InitializeViewModelActions()
 {
     OpenGridOfContacts = new Command(arg => (new GridOfContactsView()).Show());
     OpenWindowAddNewPerson = new Command(arg => (new AddPersonView()).Show());
     ExitFromApp = new Command(arg => Application.Current.Shutdown());
 }
コード例 #2
0
 private void InitializeViewModelActions()
 {
     AddNewPerson = new Command(arg => PhoneBookCommands.AddNewPerson(CurrentPerson));
 }