コード例 #1
0
ファイル: Sistema.cs プロジェクト: daiiniel/ThermoCamApp
 public void removeThermoCam(ThermoCam t)
 {
     lock ("ThermoCams")
     {
         this._thermoCams.Remove(t);
     }
 }
コード例 #2
0
ファイル: Sistema.cs プロジェクト: daiiniel/ThermoCamApp
 public void addThermoCam(ThermoCam t)
 {
     lock("ThermoCams")
     {
         this._thermoCams.Add(t);
     }
 }
コード例 #3
0
 public void removeThermoCam(ThermoCam t)
 {
     lock ("ThermoCams")
     {
         this._thermoCams.Remove(t);
     }
 }
コード例 #4
0
 public void addThermoCam(ThermoCam t)
 {
     lock ("ThermoCams")
     {
         this._thermoCams.Add(t);
     }
 }
コード例 #5
0
        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;
        }
コード例 #6
0
ファイル: CamControl.cs プロジェクト: daiiniel/ThermoCamApp
        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;
        }