Exemplo n.º 1
0
 void Devices_DeviceDetectionAttemptFailed(object sender, DeviceDetectionExceptionEventArgs e)
 {
     BeginInvoke(new MethodInvoker(delegate()
     {
         foreach (ListViewItem item in devicesListView.Items)
         {
             if (object.ReferenceEquals(item.Tag, e.Device))
             {
                 item.SubItems[1].Text = e.Exception.Message;
                 item.ToolTipText = e.Exception.Message;
                 item.ImageIndex = 1;
             }
         }
         devicesListView.Refresh();
     }));
 }
Exemplo n.º 2
0
 static void Devices_DeviceDetectionAttemptFailed(object sender, DeviceDetectionExceptionEventArgs e)
 {
     Log("WARNING   " + DateTime.Now.ToLongTimeString() + ": " + e.Device.Name + " has failed detection: " + e.Exception.Message);
 }