SteamFriendsEventArgs class used to communicate friend updates to listeners.
Inheritance: System.EventArgs
コード例 #1
0
 /// <summary>
 /// Method called from <see cref="SteamFriendList" /> that fires <see cref="OnFriendsUpdate" />.
 /// </summary>
 /// <param name="e"></param>
 private void FriendsUpdate(SteamFriendsEventArgs e)
 {
     if (OnFriendsUpdate != null)
     {
         OnFriendsUpdate(e);
     }
 }
コード例 #2
0
 /// <summary>
 /// Method called from <see cref="SteamFriendList" /> that fires <see cref="OnFriendsUpdate" />.
 /// </summary>
 /// <param name="e"></param>
 private void FriendsUpdate(SteamFriendsEventArgs e)
 {
     if (OnFriendsUpdate != null)
         OnFriendsUpdate(e);
 }
コード例 #3
0
ファイル: SteamGUI.cs プロジェクト: SijmenSchoon/Sharpcraft
 /// <summary>
 /// Update the friend list with new data.
 /// </summary>
 /// <param name="e"><see cref="SteamFriendsEventArgs" /> containing the new data.</param>
 /// <remarks>This method is used as event handler, normal updating should be done with the <see cref="SetNewData" /> method.</remarks>
 private void UpdateData(SteamFriendsEventArgs e)
 {
     if (InvokeRequired)
         Invoke((VoidDelegate)(() => SetNewData(e.Name, e.Status, e.FriendCount, e.FriendOnlineCount, e.Friends)));
     else
         SetNewData(e.Name, e.Status, e.FriendCount, e.FriendOnlineCount, e.Friends);
 }