private void ToolStripMenuItem6_Click(object sender, EventArgs e) { //设置平衡模式标志位 _101_config _101_Config = new _101_config(); _101_Config._101_Balance(true); //打开配置窗口 _101setting _101Setting = new _101setting(); _101Setting.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { SerialPort_config Port_Config = new SerialPort_config(); _101_config _101_config = new _101_config(); //保存串口设置 Port_Config.SerialPort_Save(this.comboBox5.Text, this.comboBox6.Text, this.comboBox7.Text, this.comboBox8.Text, this.comboBox9.Text); //保存101配置 _101_config._101_Save(Convert.ToInt32(this.comboBox1.Text), Convert.ToInt32(this.comboBox2.Text), Convert.ToInt32(this.comboBox3.Text), Convert.ToInt32(this.comboBox4.Text), Convert.ToInt32(this.textBox1.Text), Convert.ToInt32(this.textBox2.Text)); //保存完关闭窗口 this.Close(); }
private void button1_Click(object sender, EventArgs e) { _101_config _101_Config = new _101_config(); int flag = 0; for (int i = 0; i < checkedListBox1.Items.Count; i++) { if (checkedListBox1.GetItemChecked(i)) { _101_Config.Setup_Options(i); flag++; } } if (flag == 0)//没有选择选项 { MessageBox.Show("没有进行选择!", "提示", MessageBoxButtons.OK); } else //打开自动测试窗口 { AutoTest autoTest = new AutoTest(); autoTest.Show(); this.Hide(); } }
private void _TextOptions_Load(object sender, EventArgs e) { _101_config _101_Config = new _101_config(); _101_Config.AutoTest_init(); }