using System;
using CRVM.Entity;
namespace CRVM
{
    public partial class ChannelSelect : WizardBaseChannel
    {
        public ChannelSelect()
        {
            InitializeComponent();
        }

        private void MultiChannel_Load(object sender, EventArgs e)
        {

            CheckBox_zj01.Checked = SysParam.Instance.channel[0].ChChecked;
            CheckBox_zj02.Checked = SysParam.Instance.channel[1].ChChecked;
            CheckBox_zj03.Checked = SysParam.Instance.channel[2].ChChecked;
            CheckBox_zj04.Checked = SysParam.Instance.channel[3].ChChecked;
            CheckBox_zj05.Checked = SysParam.Instance.channel[4].ChChecked;
            CheckBox_zj06.Checked = SysParam.Instance.channel[5].ChChecked;
            CheckBox_zj07.Checked = SysParam.Instance.channel[6].ChChecked;
            CheckBox_zj08.Checked = SysParam.Instance.channel[7].ChChecked;
        }

        private void CheckBox_zj05_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[4].ChChecked = CheckBox_zj05.Checked;
        }

        private void CheckBox_zj04_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[3].ChChecked = CheckBox_zj04.Checked;
        }

        private void CheckBox_zj03_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[2].ChChecked = CheckBox_zj03.Checked;
        }

        private void CheckBox_zj02_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[1].ChChecked = CheckBox_zj02.Checked;
        }

        private void CheckBox_zj01_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[0].ChChecked = CheckBox_zj01.Checked;
        }

        private void CheckBox_zj06_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[5].ChChecked = CheckBox_zj06.Checked;
        }

        private void CheckBox_zj07_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[6].ChChecked = CheckBox_zj07.Checked;
        }

        private void CheckBox_zj08_CheckedChanged(object sender, EventArgs e)
        {
            SysParam.Instance.channel[7].ChChecked = CheckBox_zj08.Checked;
        }
    }
}
