public void Run() { //if (_dvr != null) _dvr.SDK_Init(); if (_lcd != null) { _lcd.Open(); } if (_led != null) { _led.Open(); } if (_iologic != null) { _iologic.Open(); } if (_card != null) { _card.Open(); } if (_weight != null) { _weight.Open(); } if (Cameras != null && Cameras.Length > 0) { //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bool rs = SSNetSDK.XNS_DEV_Init(); for (int i = 0; i < Cameras.Length; i++) { Cameras[i].Login(); } //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ } }
private void button1_Click(object sender, EventArgs e) { card.Open(); }