Inheritance: ObservableObject
Example #1
0
 private void InitSecondaryWatcher()
 {
     if (Settings.SecondaryGauge == null)
     {
         SecondaryWatcher = null;
     }
     else
     {
         SecondaryWatcher = new GaugeWatcher(Settings.SecondaryGauge);
     }
 }
Example #2
0
 private void InitSecondaryWatcher()
 {
     if (Settings.SecondaryGauge == null)
     {
         SecondaryWatcher = null;
     }
     else
     {
         SecondaryWatcher = new GaugeWatcher(Settings.SecondaryGauge);
     }
 }
Example #3
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;
     }
 }
Example #4
0
 void TestGauge(GaugeWatcher g, double percent)
 {
     if (percent > 100)
     {
         percent = 200 - percent;
     }
     if (percent < 3)
     {
         percent = 0;
     }
     var value = (g.Settings.MinValue + (g.Settings.MaxValue - g.Settings.MinValue) * percent / 100) / g.Settings.MultiplyValue - g.Settings.AddToValue;
     g.RawValue = value;
 }