/// <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) { } }
public SetUserStatus(UserStatus message) { Message = message; }
/// <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) { } }