Exemplo n.º 1
0
 protected void cbxSource_SelectedIndexChanged(object sender, EventArgs e)
 {
     cbxSensor.DataSource = _db.GetSensors(cbxSource.SelectedItem.Value)
                            .Select((item) => new ListItem()
     {
         Text = item.State.ToString(), Value = item.SensorUuid
     });
 }