Пример #1
0
 public void SetAliveIcon(object o, ConnectionArgs a)
 {
     if (a.property == ConnectionStatus.Property.alive && a.newState)
     {
         ThreadSafe.ChangeIcon((Form)mainWindow, Properties.Resources.notifyIconGreen);
     }
 }
Пример #2
0
 public void SetRingIcon(object o, ConnectionArgs a)
 {
     if (a.newState)
     {
         ThreadSafe.ChangeIcon((Form)mainWindow, Properties.Resources.notifyIconBlue);
     }
 }
Пример #3
0
 public void SetErrorIcon(object o, ConnectionArgs a)
 {
     if (a.property == ConnectionStatus.Property.alive)
     {
         if (!a.newState)
         {
             ThreadSafe.ChangeIcon((Form)mainWindow, Properties.Resources.notifyIconRed);
         }
     }
     else if (a.property == ConnectionStatus.Property.error)
     {
         if (a.newState)
         {
             ThreadSafe.ChangeIcon((Form)mainWindow, Properties.Resources.notifyIconRed);
         }
     }
 }