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; } }
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; }