private void RadioButtonListOnSelectedIndexChanged(object sender, EventArgs eventArgs)
        {
            _data.House.Remote.Reader.Value = ((DropDownList)sender).SelectedItem.Text;

            _device.Click("light");

            ((DropDownList)sender).Items[(Int32)(((ILight)_data.Device).Brightness)].Selected = true;
        }
        private void _imBtAdd_Click(object sender, EventArgs e)
        {
            _device.Click("t+");

            _temperLabel.Text = ((ITemperature)_data.Device).Temperature.ToString();
        }
Exemple #3
0
        private void _imBtAdd_Click(object sender, EventArgs e)
        {
            _device.Click("vol+");

            _volumeLabel.Text = ((IVolume)_data.Device).Volume.ToString();
        }
        private void imBt_Click(object sender, EventArgs e)
        {
            _device.Click();

            SetImageUrl();
        }