Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ObjetoPuertoSerial = new PuertoSerial();
            puertoSerial_GPS = new PuertoSerial();
            puertoSerial_DGPS = new PuertoSerial();
            puertoSerial_GYRO = new PuertoSerial();
            puertoSerial_ECOSONDA = new PuertoSerial();
            puertoSerial_ANEMOMETRO = new PuertoSerial();
            puertoSerial_CORREDERA = new PuertoSerial();
            puertoSerial_AIS = new PuertoSerial();
            puertoSerial_GPSBluetooth = new PuertoSerial();

            colocarEtiquetaEstadoPuertoSerial();

            puertoSerialGeneral_ISActivo = false;
            puertoSerialGPS_ISActivo = false;
            puertoSerialDGPS_ISActivo = false;
            puertoSerialGYRO_ISActivo = false;
            puertoSerialECOSONDA_ISActivo = false;
            puertoSerialANEMOMETRO_ISActivo = false;
            puertoSerialCORREDERA_ISActivo = false;
            puertoSerialAIS_ISActivo = false;
            puertoSerialGPSBluetooth_ISActivo = false;

            buquePropio = new DatosBuquePropio(this);
            conLoop = true;

            canvasMapa = new MapControl(this);
            this.Controls.Add(canvasMapa);
            buquePropio.Location = new Point(370,6);
            //buquePropio.Size = new Size(groupBox_datosConfigurados.Size.Width, groupBox_datosConfigurados.Size.Height);
            canvasMapa.BringToFront();
            canvasMapa.Visible = true;
            hiloIniciado = false;
            reproduccion = false;
        }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ObjetoPuertoSerial = new PuertoSerial();
            buquePropio = new DatosBuquePropio(this);
            conLoop = true;

            canvasMapa = new MapControl(this);
            this.Controls.Add(canvasMapa);
            buquePropio.Location = new Point(370,6);
            //buquePropio.Size = new Size(groupBox_datosConfigurados.Size.Width, groupBox_datosConfigurados.Size.Height);
            canvasMapa.BringToFront();
            canvasMapa.Visible = true;
            hiloIniciado = false;
            reproduccion = false;
        }