Exemplo n.º 1
0
 private void RulesEngineSetTrayIcon(object sender, SetTrayIconEventArgs args)
 {
     if (args.TrayIcon == TrayIcon.Red)
     {
         _notifyIcon.Icon = Properties.Resources.SirenOfShameTrayRed;
     }
     else if (args.TrayIcon == TrayIcon.Green)
     {
         _notifyIcon.Icon = Properties.Resources.SirenOfShameTrayGreen;
     }
     else
     {
         _notifyIcon.Icon = Properties.Resources.SirenOfShameTrayTriangle;
     }
 }
Exemplo n.º 2
0
 private void RulesEngineSetTrayIcon(object sender, SetTrayIconEventArgs args)
 {
     if (args.TrayIcon == TrayIcon.Red)
         _notifyIcon.Icon = Properties.Resources.SirenOfShameTrayRed;
     else if (args.TrayIcon == TrayIcon.Green)
         _notifyIcon.Icon = Properties.Resources.SirenOfShameTrayGreen;
     else
         _notifyIcon.Icon = Properties.Resources.SirenOfShameTrayTriangle;
 }