Exemple #1
0
        public ctlSensor(sensor newSensor)
        {
            InitializeComponent();

            _sensor = newSensor;

            lblTitle.Text = _sensor.name;
            lblType.Text = _sensor.type.friendlyType;

            sharedInit();
        }
Exemple #2
0
        public sensorFrm(sensor _sensor)
        {
            InitializeComponent();

            this.Controls.Remove(this.ctlSensor1);
            this.ctlSensor1 = new ctlSensor(_sensor);
            ctlSensor1.onSetIcon += setIcon;
            this.Controls.Add(this.ctlSensor1);

            this.Text = this.ctlSensor1.lblTitle.Text;
        }
Exemple #3
0
        public void fillProperties()
        {
            doPing();
            int sensorCount = getSensorCount();

            sensors.Clear();
            for (Int16 n = 1; n < sensorCount + 1; n++)
            {
                sensor newSensor = new sensor(this) { id = n };

                sensors.Add(newSensor.id, newSensor);
            }
        }
Exemple #4
0
 public SensorOptions(sensorTypeEnum genericDigitalIn, sensor connectedSensor)
 {
     thisSensorType = genericDigitalIn;
     thisSensor = connectedSensor;
 }