Beispiel #1
0
 private void Settings_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Gauges")
     {
         Gauges = GaugeWatcher.FromSettingsList(Settings.Instance.Gauges);
     }
 }
Beispiel #2
0
 void TestGauge(GaugeWatcher g, double percent)
 {
     if (percent > 100)
     {
         percent = 200 - percent;
     }
     if (percent < 3)
     {
         percent = 0;
     }
     g.Percentage = percent;
     if (g.SecondaryWatcher != null)
     {
         g.SecondaryWatcher.Percentage = percent;
     }
 }