private void ExecuteAddContactCommand() { CreateEditContactInteractionRequest.Raise( new CreateEditContactNotification(_contactService) { Title = "Add Contact" }, (data) => { if (data.Confirmed) { // refresh event } }); }
private void ExecuteEditContactCommand() { if (SelectedContactIndex < 0) { return; } CreateEditContactInteractionRequest.Raise( new CreateEditContactNotification(_contactService, Contacts[SelectedContactIndex]) { Title = "Edit Contact" }, (data) => { if (data.Confirmed) { // refresh event Load(); } }); }