예제 #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;
     }
 }
예제 #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;
 }