Exemplo n.º 1
0
 public static void HandleStatus(Client client, Status packet)
 {
     FrmMain.Instance.SetStatusByClient(client, packet.Message);
 }
Exemplo n.º 2
0
 public static void HandleStatus(Client client, Status packet)
 {
     FrmMain.Instance.Invoke((MethodInvoker) delegate
     {
         foreach (ListViewItem lvi in FrmMain.Instance.lstClients.Items)
         {
             Client c = (Client) lvi.Tag;
             if (client == c)
             {
                 lvi.SubItems[3].Text = packet.Message;
                 break;
             }
         }
     });
 }