Exemple #1
0
 public ContextMenu(
     //IMonitorCheckWorker monitorCheckWorker,
     IPowerProcessor powerProcessor,
     IIconSettings iconSettings)
 {
     //_monitorCheckWorker = monitorCheckWorker;
     _powerProcessor = powerProcessor;
     _iconSettings   = iconSettings;
 }
Exemple #2
0
 public ProcessIcon(
     IMonitorCheckWorker monitorCheckWorker,
     IContextMenu contextMenu,
     IPowerProcessor powerProcessor,
     IIconSettings iconSettings)
 {
     _monitorCheckWorker = monitorCheckWorker;
     _contextMenu        = contextMenu;
     _powerProcessor     = powerProcessor;
     _iconSettings       = iconSettings;
     _powerProcessor.OnPowerSchemeChange += (sender, e) => Update();
     monitorCheckWorker.OnAutoChanged     = (sender, e) => Update();
     Icon = new NotifyIcon();
 }
 public SelectIconsForm(IPowerProcessor powerProcessor, IIconSettings iconSettings)
 {
     _powerProcessor = powerProcessor;
     _iconSettings   = iconSettings;
     InitializeComponent();
 }