public ctlSensor(sensor newSensor) { InitializeComponent(); _sensor = newSensor; lblTitle.Text = _sensor.name; lblType.Text = _sensor.type.friendlyType; sharedInit(); }
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; }
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); } }
public SensorOptions(sensorTypeEnum genericDigitalIn, sensor connectedSensor) { thisSensorType = genericDigitalIn; thisSensor = connectedSensor; }