Esempio n. 1
0
 public async void AddToFriends(object sender, EventArgs e)
 {
     try
     {
         Contacts.Add(Storage.User.Id, Storage.Friend.Id);
         PersonalInfo.IsVisible = true;
         FriendAddedEvent?.Invoke();
     }
     catch (Exception ex)
     {
         await DisplayAlert("Ошибка", ex.Message, "OK");
     }
 }
Esempio n. 2
0
 private void HandleAddFriendEvent(FriendAddedEvent evnt)
 {
     this.myFriends.Add(evnt.FriendId);
 }