public void removeThermoCam(ThermoCam t) { lock ("ThermoCams") { this._thermoCams.Remove(t); } }
public void addThermoCam(ThermoCam t) { lock("ThermoCams") { this._thermoCams.Add(t); } }
public void addThermoCam(ThermoCam t) { lock ("ThermoCams") { this._thermoCams.Add(t); } }
public void Initialize(Form f, Sistema _system) { ////////////////////// INICIALIZACIÓN CAMARAS ////////////////////////// this.camara = new ThermoCam( f, CameraType.FLIR_A3X0, DeviceType.Ethernet16bits, InterfaceType.TCP); this._system = _system; this._system.addThermoCam(this.camara); // Añadir cammara al sistema this.camara.ConfiguracionMode = true; for (int i = 0; i < this._system.Zonas.Count; i++) { this.comboBoxZonas.Items.Add(this._system.Zonas[i].Nombre); } ////////////////////// EVENTO CONEXIÓN Y DESCONEXIÓN ////////////////// this.camara.ThermoCamConnected += camara_ThremoCamConnected; this.camara.ThermoCamDisConnected += camara_ThermoCamDisConnected; ////////////////////// EVENTO CAMBIO DE NOMBRE CAMARA ////////////////// this.textBoxCamName.TextChanged += textBoxCamName_TextChanged; this.textBoxDireccionIP.TextChanged += textBoxDireccionIP_TextChanged; ////////////////////// EVENTOS CONECTAR Y DESCONECTAR ////////////////// this.buttonConectar.Click += buttonConectar_Click; this.buttonDesconectar.Click += buttonDesconectar_Click; }
public void Initialize(Form f) { ////////////////////// INICIALIZACIÓN CAMARAS ////////////////////////// camara = new ThermoCam(f, CameraType.FLIR_A3X0, DeviceType.Ethernet16bits, InterfaceType.TCP); this.camara.Address = "172.16.100.1"; this.camara.ThermoCamImgReceived += camara_ThermoCamImgEvent; }