public void SetAliveBulb(object o, ConnectionArgs a) { if (a.property == ConnectionStatus.Property.alive && a.newState) { ThreadSafe.ChangePicture(mainWindow.statusPictureControl, Properties.Resources.notifyGreen); } }
public void SetRingBulb(object o, ConnectionArgs a) { if (a.newState) { ThreadSafe.ChangePicture(mainWindow.statusPictureControl, Properties.Resources.notifyBlue); } }
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); } } }