Ejemplo n.º 1
0
        public CamerasConfiguration(int numerocamaras, Sistema system)
        {
            this._System = system;

            this.Salir = true;
            InitializeComponent(numerocamaras);
        }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
0
        public Zona(Sistema parent)
        {
            this._hasChildren = false;
            this._children = new List<SubZona>();

            this._parent = parent;
        }
Ejemplo n.º 4
0
 public Zona(SerializationInfo info, StreamingContext ctxt)
 {
     this._nombre      = (string)        info.GetValue("Nombre",      typeof(string));
     this._children    = (List<SubZona>) info.GetValue("Children",    typeof(SubZona));
     this._hasChildren = (bool)          info.GetValue("HasChildren", typeof(bool));
     this._parent      = (Sistema)       info.GetValue("Parent",      typeof(Sistema));
 }
Ejemplo n.º 5
0
        public ZoneConfiguration(int nZonas)
        {
            this.Salir = true;

            this.nZonas = nZonas;

            this._system = new Sistema();
            InitializeComponent();
        }