示例#1
0
 /// <summary>
 /// Sets the user status of a client.
 /// </summary>
 /// <remarks>
 /// Can be "Active" or "Idle".
 /// </remarks>
 /// <param name="c">The client to update the user status of.</param>
 /// <param name="userStatus">The new user status.</param>
 public void SetUserStatusByClient(Client c, UserStatus userStatus)
 {
     try
     {
         lstClients.Invoke((MethodInvoker) delegate
         {
             var item = GetListViewItemByClient(c);
             if (item != null)
             {
                 item.SubItems[USERSTATUS_ID].Text = userStatus.ToString();
             }
         });
     }
     catch (InvalidOperationException)
     {
     }
 }
示例#2
0
 public SetUserStatus(UserStatus message)
 {
     Message = message;
 }
示例#3
0
文件: FrmMain.cs 项目: Nusec/xRAT
 /// <summary>
 /// Sets the user status of a client.
 /// </summary>
 /// <remarks>
 /// Can be "Active" or "Idle".
 /// </remarks>
 /// <param name="c">The client to update the user status of.</param>
 /// <param name="userStatus">The new user status.</param>
 public void SetUserStatusByClient(Client c, UserStatus userStatus)
 {
     try
     {
         lstClients.Invoke((MethodInvoker) delegate
         {
             var item = GetListViewItemByClient(c);
             if (item != null)
                 item.SubItems[USERSTATUS_ID].Text = userStatus.ToString();
         });
     }
     catch (InvalidOperationException)
     {
     }
 }
示例#4
0
 public SetUserStatus(UserStatus message)
 {
     Message = message;
 }