Ejemplo n.º 1
0
 public void SetAliveBulb(object o, ConnectionArgs a)
 {
     if (a.property == ConnectionStatus.Property.alive && a.newState)
     {
         ThreadSafe.ChangePicture(mainWindow.statusPictureControl, Properties.Resources.notifyGreen);
     }
 }
Ejemplo n.º 2
0
 public void SetRingBulb(object o, ConnectionArgs a)
 {
     if (a.newState)
     {
         ThreadSafe.ChangePicture(mainWindow.statusPictureControl, Properties.Resources.notifyBlue);
     }
 }
Ejemplo n.º 3
0
 public void SetErrorBulb(object o, ConnectionArgs a)
 {
     if (a.property == ConnectionStatus.Property.alive)
     {
         if (!a.newState)
         {
             ThreadSafe.ChangePicture(mainWindow.statusPictureControl, Properties.Resources.notifyRed);
         }
     }
     else if (a.property == ConnectionStatus.Property.error)
     {
         if (a.newState)
         {
             ThreadSafe.ChangePicture(mainWindow.statusPictureControl, Properties.Resources.notifyRed);
         }
     }
 }