예제 #1
0
        /// <summary>
        /// called once by the constructor at startup
        /// </summary>
        private void SetupFormElements()
        {
            //Load_GPS_Parser();

            this.Resize += new EventHandler(frmAirWulf_Resize);
            for (int i = 0; i < 12; i++)
            {
                cbxComPortSelect.Items.Add("COM" + (i + 1).ToString());
            }
            cbxComPortSelect.SelectedIndex = 0;
            GoogleMapCtrl = new GoogleMapControl();
            GoogleMapCtrl.Location = new Point(0, 70);
            this.Controls.Add(GoogleMapCtrl);

            GaugeSize =
                new Size(this.Size.Height / 5,
                this.Size.Height / 5
                );

            SetUpBatteryLevelGauge();
            SetUpBatteryTemperatureGauge();
            SetUpBatteryVoltageGauge();
            SetUpBatteryCurrentGauge();

            SetUpAltitudeGauge();
            SetUpArtHorizon();
            SetUpCompass();
            SetUpHeadingGauge();
            SetUpSpeedGauge();
            SetUpRPMGauge();

            SetUpIndicatorLights();

            this.OnResize(new EventArgs());
        }
예제 #2
0
 private void btnReloadGMC_Click(object sender, EventArgs e)
 {
     GoogleMapCtrl.Dispose();
     GoogleMapCtrl = new GoogleMapControl();
     GoogleMapCtrl.Location = new Point(0, 70);
     this.Controls.Add(GoogleMapCtrl);
 }