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"); } }
private void HandleAddFriendEvent(FriendAddedEvent evnt) { this.myFriends.Add(evnt.FriendId); }