private void OnSaveExecute(object obj)
 {
     _friendDataProvider.SaveFriend(Friend.Model);
     Friend.AcceptChanges();
     _eventAggregator.GetEvent <FriendSavedEvent>().Publish(Friend.Model);
     InvalidateCommands();
 }
 private void OnSaveButtonClicked(object obj)
 {
     friendDataProvider.SaveFriend(friend.Model);
     friend.IsChanged = false;
     eventAggregator.GetEvent <OnFriendSavedEvent>().Publish(friend.Model);
     RefreshSaveButtonState();
     RefreshDeleteButtonState();
 }
Ejemplo n.º 3
0
 private void OnSaveExecute(object obj) //metoda zapisu
 {
     _dataProvider.SaveFriend(Friend.Model);
     Friend.AcceptChanges();
     _eventAggregator.GetEvent <FriendSavedEvent>().Publish(Friend.Model);
 }
 private void OnSaveExecute(object obj)
 {
     _dataProvider.SaveFriend(Friend.Model); //ad 12
     Friend.AcceptChanges();                 //ad 13
     _eventAggregator.GetEvent <FriendSavedEvent>().Publish(Friend.Model);
 }