コード例 #1
0
ファイル: OutputManager.cs プロジェクト: bolwire/bliksem
        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
ファイル: ScheduleManager.cs プロジェクト: bolwire/bliksem
 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;
         }
     }
 }