Пример #1
0
 async private void FriendsControl_OnFriendItemSelected(object sender, FriendSelectedEventArgs e)
 {
     var friendId = e.Friend.VkId;
     MessagesList.SetFriendId(friendId);
     MessageInput.SetFriendId(friendId);
     var dialogMessagesService = new DialogMessagesService();
     MessagesList.Refresh();
     await Task.Run(() => ActionExecutor.RunScenario(dialogMessagesService.LoadFromVkByFriendId, friendId));
     await Task.Run(() => FriendsControl.UpdateMessagesCount(friendId));
     await Task.Run(() => dialogMessagesService.SaveToDB());
 }
Пример #2
0
 private void FriendItem_Selected(object sender, FriendSelectedEventArgs e)
 {
     if (FriendItemSelected != null)
         FriendItemSelected(sender, e);
 }