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

            IncreasingRadio.IsChecked = Increasing;
            DecreasingRadio.IsChecked = !Increasing;
        }
Example #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.###")));
        }
Example #3
0
    // Start is called before the first frame update
    void Awake()
    {
        if (TopValueSingleton != null)
        {
            Destroy(this.gameObject);
            return;
        }
        TopValueSingleton = this;
        GameObject.DontDestroyOnLoad(this.gameObject);

        if (MapSize == 0)
        {
            MapSize = 4;
        }
    }
Example #4
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();
        }
Example #5
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();
 }