Exemple #1
0
 public void ClearMonitors()
 {
     foreach (var rule in DependentWidgets)
     {
         rule.Remove();
         rule.StateChanged -= onStateChangedHandler;
     }
     DependentWidgets.Clear();
 }
Exemple #2
0
 public void RegisterMonitor(IWatchRule match)
 {
     DependentWidgets.Add(match);
     match.StateChanged += onStateChangedHandler;
 }