Ejemplo n.º 1
0
        private void 打开设备ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form_SetCANParam formParm = new Form_SetCANParam(usbCAN);

            formParm.ShowDialog();
            if (canMenu.startDevice())
            {
                MessageBox.Show("设备打开成功");
            }
        }
Ejemplo n.º 2
0
        private void 设备参数ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form_SetCANParam formParm = new Form_SetCANParam(ref USBCAN_dictionary);

            formParm.ShowDialog();
            for (var i = 0; i <= 7; i++)
            {
                try
                {
                    if (USBCAN_dictionary[i].startDevice())
                    {
                        textBox1.AppendText("设备" + i + "开启成功\r\n");
                    }
                    else
                    {
                        textBox1.AppendText("设备" + i + "开启失败\r\n");
                    }
                }
                catch
                {
                }
            }
        }
Ejemplo n.º 3
0
        /*---------------------------------------------------------------------------------------------------*/
        private void 设备参数ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form_SetCANParam form = new Form_SetCANParam(usbCAN);

            form.ShowDialog();
        }