private void InitializeViewModelActions() { OpenGridOfContacts = new Command(arg => (new GridOfContactsView()).Show()); OpenWindowAddNewPerson = new Command(arg => (new AddPersonView()).Show()); ExitFromApp = new Command(arg => Application.Current.Shutdown()); }
private void InitializeViewModelActions() { AddNewPerson = new Command(arg => PhoneBookCommands.AddNewPerson(CurrentPerson)); }