Beispiel #1
0
        public override void OnLoad()
        {
            textBoxTopValue.Text = TopValue.ToString();

            IncreasingRadio.IsChecked = Increasing;
            DecreasingRadio.IsChecked = !Increasing;
        }
Beispiel #2
0
        public string GetConfigString()
        {
            string overUnder = "above";

            if (!Increasing)
            {
                overUnder = "below";
            }

            return(string.Format("Index {0} goes {1} {2} dB", Index, overUnder, TopValue.ToString("0.###")));
        }
Beispiel #3
0
        public override void OnLoad()
        {
            sensor                    = PhidgetManager.Get <TemperatureSensor>(false);
            sensor.Attach            += sensor_Attach;
            sensor.Detach            += sensor_Detach;
            sensor.TemperatureChange += sensor_TemperatureChange;

            textBoxTopValue.Text = TopValue.ToString();

            IncreasingRadio.IsChecked = Increasing;
            DecreasingRadio.IsChecked = !Increasing;

            SetAttached();
            CheckCanSave();
        }
Beispiel #4
0
 public string GetConfigString()
 {
     return(string.Format("Index {0}, between {1} and {2} cm", Index, TopValue.ToString("0.##"), BottomValue.ToString("0.##")));
 }
 public override void OnLoad()
 {
     textBoxTopValue.Text    = TopValue.ToString();
     textBoxBottomValue.Text = BottomValue.ToString();
 }