コード例 #1
0
        public Form_AidedAnalysis(USBCAN can)
        {
            InitializeComponent();

            dsClass      = new DISCRETEVARIABLES();
            ctClass      = new CONTINUOUSVARIABLE();
            usbCAN       = new USBCAN(dsClass.saveData);
            dispalyClass = new DISPLAYCLASS(dataGridViewshow);

            usbCAN.BTR0     = can.BTR0;
            usbCAN.BTR1     = can.BTR1;
            usbCAN.CANIndex = can.CANIndex;

            dataGridViewfuzzy.Rows.Add();
        }
コード例 #2
0
        public Form_BasicFunction()
        {
            InitializeComponent();
            dataGridViewsend.Rows.Add();
            dataGridViewsend.Rows[0].Cells[0].Value  = false;
            dataGridViewsend.Rows[0].Cells[11].Value = "标准帧";
            dataGridViewsend.Rows[0].Cells[12].Value = "数据帧";
            dataGridViewsend.Rows[0].Cells[13].Value = "0";
            dataGridViewsend.CellValueChanged       += dataGridViewsend_CellValueChanged;

            dataGridViewfilter.Rows.Add();
            dataGridViewfilter.Rows[0].Cells[0].Value = false;
            dataGridViewfilter.CellValueChanged      += dataGridViewfilter_CellValueChanged;

            displayClass = new DISPLAYCLASS(dataGridViewshow);
            usbCAN       = new USBCAN(displayClass.ProcessingFrame);


            canMenu.usbCAN = usbCAN;
            CheckForIllegalCrossThreadCalls = false;
            form_basic = this;
        }