Example #1
0
        public SetPrint_Form(Signal.MotorSignal.MotorSignalSettings set2, string str2, Signal.MotorSignal.MotorSignalSettings set3, string str3)
        {
            InitializeComponent();

            this.settings2 = set2;
            this.settings3 = set3;
            this.str2wheelconfigFilePath = str2;
            this.str3wheelconfigFilePath = str3;
        }
Example #2
0
        private void CheckConfig()
        {
            IsSignalGanXian = false;
            IsSiganlGan     = false;
            IsSignalXian    = false;
            IsSignalCar     = false;


            for (int i = 0; i < SimSignal.RAW_LENGTH; i++)
            {
                picBoxChe[i].BackColor = Color.DarkSeaGreen;
            }

            for (int i = 0; i < SimSignal.RAW_LENGTH; i++)
            {
                picBoxXian[i].BackColor = Color.DarkSeaGreen;
            }

            for (int i = 0; i < SimSignal.RAW_LENGTH; i++)
            {
                picBoxGan[i].BackColor = Color.DarkSeaGreen;
            }


            //车型
            if (this.rdoType2wheel.Checked == true)
            {
                settings = settings2;
            }
            else
            {
                this.settings = settings3;
            }

            //检测方式
            if (this.rdoSignal.Checked == true)
            {
                IsSignalGanXian = true;
            }

            //单杆 线
            if (this.rdoSignalGan.Checked == true)
            {
                IsSiganlGan = true;
            }
            else
            {
                IsSignalXian = true;
            }

            //杆线索引
            string dd = this.comboBox1.Text;

            this.gxNumber = int.Parse(this.comboBox1.Text);
        }
Example #3
0
        public GXQufan(Signal.MotorSignal.MotorSignalSettings set2, string str2, Signal.MotorSignal.MotorSignalSettings set3, string str3)
        {
            InitializeComponent();
            this.settings2 = set2;
            this.settings3 = set3;
            this.str2wheelconfigFilePath = str2;
            this.str3wheelconfigFilePath = str3;


            this.settings      = settings2;
            this.strDQFileName = str2;
        }
Example #4
0
        //绑定多选框
        private void Bind(Signal.MotorSignal.MotorSignalSettings set, string filename)
        {
            strDQFileName = filename;
            settings      = set;
            for (int i = 0; i < 6; i++)
            {
                gan[i].Checked  = false;
                xian[i].Checked = false;
            }

            for (int i = 0; i < 6; i++)
            {
                if (((settings.SignConfig.AdminPBGan >> i) & 1) == 1)
                {
                    gan[i].Checked = true;
                }
                if (((settings.SignConfig.AdminPBXian >> i) & 1) == 1)
                {
                    xian[i].Checked = true;
                }
            }
        }
Example #5
0
 //绑定属性浏览器
 private void Bind(Signal.MotorSignal.MotorSignalSettings set, string filename)
 {
     strDQFileName = filename;
     settings      = set;
     this.propertyGrid1.SelectedObject = settings;
 }