public CamerasConfiguration(int numerocamaras, Sistema system) { this._System = system; this.Salir = true; InitializeComponent(numerocamaras); }
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 Zona(Sistema parent) { this._hasChildren = false; this._children = new List<SubZona>(); this._parent = parent; }
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)); }
public ZoneConfiguration(int nZonas) { this.Salir = true; this.nZonas = nZonas; this._system = new Sistema(); InitializeComponent(); }