private void AddFriendClick(object sender, RoutedEventArgs e)
 {
     if (ChatWindowViewModel.Instance.TooltipInfo.IsFriend)
     {
         Proxy.UnfriendUser(ChatWindowViewModel.Instance.TooltipInfo.Name);
         WindowManager.ChatWindow.CloseTooltip();
     }
     else
     {
         var friendDg = new FriendMessageDialog();
         friendDg.Show();
     }
     ChatWindowViewModel.Instance.TooltipInfo.Refresh();
 }
 private void AddFriendClick(object sender, RoutedEventArgs e)
 {
     if (WindowManager.FloatingButton.TooltipInfo.IsFriend)
     {
         if (_unfriending)
         {
             Proxy.UnfriendUser(WindowManager.FloatingButton.TooltipInfo.Name);
             WindowManager.FloatingButton.ClosePlayerMenu();
             UnfriendRipple.Opacity = 0;
             _unfriending           = false;
         }
         else
         {
             ExpandRedRipple(UnfriendRipple, FriendGrid);
             _unfriending = true;
         }
     }
     else
     {
         var friendDg = new FriendMessageDialog();
         friendDg.Show();
     }
     WindowManager.FloatingButton.TooltipInfo.Refresh();
 }