示例#1
0
        private void cb_Outputs_SelectedIndexChanged(object sender, EventArgs e)
        {
            Channels item = cb_Outputs.SelectedItem as Channels;
            if (item == null) return;

            tb_OutputName.Text = item.ChannelName;
            cb_OutputEnabled.Checked = item.ChannelEnabled;
            _currentItem = item;
        }
示例#2
0
 private void cb_Outputs_SelectedIndexChanged(object sender, EventArgs e)
 {
     //TODO: Change this so that the output channel member is set to the selectedindex of the combobox - 1
     Channels citem = cb_Outputs.SelectedItem as Channels;
     if (citem != null)
     {
         _currentChannel = citem;
         if (_currentSchedule != null)
         {
             _currentSchedule.Channel = citem.ChannelNumber;
         }
     }
 }