Пример #1
0
 public static void HandleUserStatus(Client client, UserStatus packet)
 {
     FrmMain.Instance.SetUserStatusByClient(client, packet.Message);
 }
Пример #2
0
 public SetUserStatus(UserStatus message)
 {
     Message = message;
 }
Пример #3
0
 public static void HandleUserStatus(Client client, UserStatus packet)
 {
     FrmMain.Instance.Invoke((MethodInvoker) delegate
     {
         foreach (ListViewItem lvi in FrmMain.Instance.lstClients.Items)
         {
             Client c = (Client) lvi.Tag;
             if (client == c)
             {
                 lvi.SubItems[4].Text = packet.Message;
                 break;
             }
         }
     });
 }