Пример #1
0
        public Form1()
        {
            InitializeComponent();

            usbController = new usbDevice(0x04D8, 0x0042);

            usbController.usbEvent += new usbDevice.usbEventsHandler(usbEvent_receiver);

            usbController.findTargetDevice();

            InitializeBackgroundWorker();
            this.FormClosing += new FormClosingEventHandler(Form_FormClosing);

            dtFeeders = cf.POPFeedersTable();
            kf.initdevice();
            LoadSettings();

            RunBoardInit();
            Thread thrdRemote = new Thread(new ThreadStart(initRemote));
            thrdRemote.Start();
            thrdRemote.IsBackground = true;

            csvload.SetupGridView(dataGridView1);

            // setup manual feeder single picker list
        }
Пример #2
0
        public Form1()
        {
            InitializeComponent();


            usbController = new usbDevice(0x04D8, 0x0042);


            usbController.usbEvent += new usbDevice.usbEventsHandler(usbEvent_receiver);


            usbController.findTargetDevice();



            InitializeBackgroundWorker();
            this.FormClosing += new FormClosingEventHandler(Form_FormClosing);

            dtFeeders = cf.POPFeedersTable();
            kf.initdevice();
            LoadSettings();


            RunBoardInit();
            Thread thrdRemote = new Thread(new ThreadStart(initRemote));

            thrdRemote.Start();
            thrdRemote.IsBackground = true;


            csvload.SetupGridView(dataGridView1);


            // setup manual feeder single picker list
        }