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; }
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); }
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; }
//绑定多选框 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; } } }
//绑定属性浏览器 private void Bind(Signal.MotorSignal.MotorSignalSettings set, string filename) { strDQFileName = filename; settings = set; this.propertyGrid1.SelectedObject = settings; }