0% found this document useful (0 votes)
3 views5 pages

namespace FlightMonitor

The document describes the MainForm class of a Flight Monitor application, which includes various UI components such as labels for displaying flight data (altitude, battery, temperature, etc.), buttons for connecting and controlling the map, and a GMapControl for displaying the flight path. The class also includes methods for initializing these components and handling events like button clicks. Overall, it sets up a graphical interface for monitoring flight information and controlling map interactions.

Uploaded by

chupa66771508
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

namespace FlightMonitor

The document describes the MainForm class of a Flight Monitor application, which includes various UI components such as labels for displaying flight data (altitude, battery, temperature, etc.), buttons for connecting and controlling the map, and a GMapControl for displaying the flight path. The class also includes methods for initializing these components and handling events like button clicks. Overall, it sets up a graphical interface for monitoring flight information and controlling map interactions.

Uploaded by

chupa66771508
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

namespace FlightMonitor

{
partial class MainForm
{
private System.ComponentModel.IContainer components = null;
private GMap.NET.WindowsForms.GMapControl gMapControl1;
private System.Windows.Forms.Label lblAltitude;
private System.Windows.Forms.Label lblBattery;
private System.Windows.Forms.Label lblTemperature;
private System.Windows.Forms.Label lblMode;
private System.Windows.Forms.Label lblSatellites;
private System.Windows.Forms.Label lblLatitude;
private System.Windows.Forms.Label lblLongitude;
private System.Windows.Forms.Button btnConnect;
private System.Windows.Forms.ComboBox comboBoxPorts;
private System.Windows.Forms.Button btnZoomIn;
private System.Windows.Forms.Button btnZoomOut;
private System.Windows.Forms.Button btnAddWaypoint;
private System.Windows.Forms.Button btnClearWaypoints;

protected override void Dispose(bool disposing)


{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

private void InitializeComponent()


{
this.gMapControl1 = new GMap.NET.WindowsForms.GMapControl();
this.lblAltitude = new System.Windows.Forms.Label();
this.lblBattery = new System.Windows.Forms.Label();
this.lblTemperature = new System.Windows.Forms.Label();
this.lblMode = new System.Windows.Forms.Label();
this.lblSatellites = new System.Windows.Forms.Label();
this.lblLatitude = new System.Windows.Forms.Label();
this.lblLongitude = new System.Windows.Forms.Label();
this.btnConnect = new System.Windows.Forms.Button();
this.comboBoxPorts = new System.Windows.Forms.ComboBox();
this.btnZoomIn = new System.Windows.Forms.Button();
this.btnZoomOut = new System.Windows.Forms.Button();
this.btnAddWaypoint = new System.Windows.Forms.Button();
this.btnClearWaypoints = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// gMapControl1
//
this.gMapControl1.Bearing = 0F;
this.gMapControl1.CanDragMap = true;
this.gMapControl1.EmptyTileColor = System.Drawing.Color.Navy;
this.gMapControl1.GrayScaleMode = false;
this.gMapControl1.HelperLineOption =
GMap.NET.WindowsForms.HelperLineOptions.DontShow;
this.gMapControl1.LevelsKeepInMemmory = 5;
this.gMapControl1.Location = new System.Drawing.Point(2, 2);
this.gMapControl1.Margin = new System.Windows.Forms.Padding(4);
this.gMapControl1.MarkersEnabled = true;
this.gMapControl1.MaxZoom = 2;
this.gMapControl1.MinZoom = 2;
this.gMapControl1.MouseWheelZoomEnabled = true;
this.gMapControl1.MouseWheelZoomType =
GMap.NET.MouseWheelZoomType.MousePositionAndCenter;
this.gMapControl1.Name = "gMapControl1";
this.gMapControl1.NegativeMode = false;
this.gMapControl1.PolygonsEnabled = true;
this.gMapControl1.RetryLoadTile = 0;
this.gMapControl1.RoutesEnabled = true;
this.gMapControl1.ScaleMode = GMap.NET.WindowsForms.ScaleModes.Integer;
this.gMapControl1.SelectedAreaFillColor =
System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(65)))), ((int)
(((byte)(105)))), ((int)(((byte)(225)))));
this.gMapControl1.ShowTileGridLines = false;
this.gMapControl1.Size = new System.Drawing.Size(814, 549);
this.gMapControl1.TabIndex = 0;
this.gMapControl1.Zoom = 0D;
this.gMapControl1.MouseClick += new
System.Windows.Forms.MouseEventHandler(this.gMapControl1_MouseClick);
//
// lblAltitude
//
this.lblAltitude.AutoSize = true;
this.lblAltitude.Location = new System.Drawing.Point(827, 25);
this.lblAltitude.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblAltitude.Name = "lblAltitude";
this.lblAltitude.Size = new System.Drawing.Size(80, 16);
this.lblAltitude.TabIndex = 1;
this.lblAltitude.Text = "Altitude: N/A";
//
// lblBattery
//
this.lblBattery.AutoSize = true;
this.lblBattery.Location = new System.Drawing.Point(827, 62);
this.lblBattery.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblBattery.Name = "lblBattery";
this.lblBattery.Size = new System.Drawing.Size(78, 16);
this.lblBattery.TabIndex = 2;
this.lblBattery.Text = "Battery: N/A";
//
// lblTemperature
//
this.lblTemperature.AutoSize = true;
this.lblTemperature.Location = new System.Drawing.Point(827, 98);
this.lblTemperature.Margin = new System.Windows.Forms.Padding(4, 0, 4,
0);
this.lblTemperature.Name = "lblTemperature";
this.lblTemperature.Size = new System.Drawing.Size(114, 16);
this.lblTemperature.TabIndex = 3;
this.lblTemperature.Text = "Temperature: N/A";
//
// lblMode
//
this.lblMode.AutoSize = true;
this.lblMode.Location = new System.Drawing.Point(827, 135);
this.lblMode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblMode.Name = "lblMode";
this.lblMode.Size = new System.Drawing.Size(106, 16);
this.lblMode.TabIndex = 4;
this.lblMode.Text = "Flight Mode: N/A";
//
// lblSatellites
//
this.lblSatellites.AutoSize = true;
this.lblSatellites.Location = new System.Drawing.Point(827, 172);
this.lblSatellites.Margin = new System.Windows.Forms.Padding(4, 0, 4,
0);
this.lblSatellites.Name = "lblSatellites";
this.lblSatellites.Size = new System.Drawing.Size(91, 16);
this.lblSatellites.TabIndex = 5;
this.lblSatellites.Text = "Satellites: N/A";
//
// lblLatitude
//
this.lblLatitude.AutoSize = true;
this.lblLatitude.Location = new System.Drawing.Point(827, 209);
this.lblLatitude.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblLatitude.Name = "lblLatitude";
this.lblLatitude.Size = new System.Drawing.Size(83, 16);
this.lblLatitude.TabIndex = 6;
this.lblLatitude.Text = "Latitude: N/A";
//
// lblLongitude
//
this.lblLongitude.AutoSize = true;
this.lblLongitude.Location = new System.Drawing.Point(827, 246);
this.lblLongitude.Margin = new System.Windows.Forms.Padding(4, 0, 4,
0);
this.lblLongitude.Name = "lblLongitude";
this.lblLongitude.Size = new System.Drawing.Size(95, 16);
this.lblLongitude.TabIndex = 7;
this.lblLongitude.Text = "Longitude: N/A";
//
// btnConnect
//
this.btnConnect.Location = new System.Drawing.Point(827, 295);
this.btnConnect.Margin = new System.Windows.Forms.Padding(4);
this.btnConnect.Name = "btnConnect";
this.btnConnect.Size = new System.Drawing.Size(133, 37);
this.btnConnect.TabIndex = 8;
this.btnConnect.Text = "Connect";
this.btnConnect.UseVisualStyleBackColor = true;
this.btnConnect.Click += new
System.EventHandler(this.btnConnect_Click);
//
// comboBoxPorts
//
this.comboBoxPorts.FormattingEnabled = true;
this.comboBoxPorts.Location = new System.Drawing.Point(827, 345);
this.comboBoxPorts.Margin = new System.Windows.Forms.Padding(4);
this.comboBoxPorts.Name = "comboBoxPorts";
this.comboBoxPorts.Size = new System.Drawing.Size(132, 24);
this.comboBoxPorts.TabIndex = 7;
//
// btnZoomIn
//
this.btnZoomIn.Location = new System.Drawing.Point(827, 394);
this.btnZoomIn.Margin = new System.Windows.Forms.Padding(4);
this.btnZoomIn.Name = "btnZoomIn";
this.btnZoomIn.Size = new System.Drawing.Size(133, 37);
this.btnZoomIn.TabIndex = 9;
this.btnZoomIn.Text = "Zoom In";
this.btnZoomIn.UseVisualStyleBackColor = true;
this.btnZoomIn.Click += new System.EventHandler(this.btnZoomIn_Click);
//
// btnZoomOut
//
this.btnZoomOut.Location = new System.Drawing.Point(827, 443);
this.btnZoomOut.Margin = new System.Windows.Forms.Padding(4);
this.btnZoomOut.Name = "btnZoomOut";
this.btnZoomOut.Size = new System.Drawing.Size(133, 37);
this.btnZoomOut.TabIndex = 10;
this.btnZoomOut.Text = "Zoom Out";
this.btnZoomOut.UseVisualStyleBackColor = true;
this.btnZoomOut.Click += new
System.EventHandler(this.btnZoomOut_Click);
//
// btnAddWaypoint
//
this.btnAddWaypoint.Location = new System.Drawing.Point(0, 0);
this.btnAddWaypoint.Name = "btnAddWaypoint";
this.btnAddWaypoint.Size = new System.Drawing.Size(75, 23);
this.btnAddWaypoint.TabIndex = 11;
//
// btnClearWaypoints
//
this.btnClearWaypoints.Location = new System.Drawing.Point(826, 498);
this.btnClearWaypoints.Margin = new System.Windows.Forms.Padding(4);
this.btnClearWaypoints.Name = "btnClearWaypoints";
this.btnClearWaypoints.Size = new System.Drawing.Size(133, 37);
this.btnClearWaypoints.TabIndex = 12;
this.btnClearWaypoints.Text = "Clear Waypoints";
this.btnClearWaypoints.UseVisualStyleBackColor = true;
this.btnClearWaypoints.Click += new
System.EventHandler(this.btnClearWaypoints_Click);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1000, 558);
this.Controls.Add(this.gMapControl1);
this.Controls.Add(this.lblAltitude);
this.Controls.Add(this.lblBattery);
this.Controls.Add(this.lblTemperature);
this.Controls.Add(this.lblMode);
this.Controls.Add(this.lblSatellites);
this.Controls.Add(this.lblLatitude);
this.Controls.Add(this.lblLongitude);
this.Controls.Add(this.btnConnect);
this.Controls.Add(this.comboBoxPorts);
this.Controls.Add(this.btnZoomIn);
this.Controls.Add(this.btnZoomOut);
this.Controls.Add(this.btnAddWaypoint);
this.Controls.Add(this.btnClearWaypoints);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "MainForm";
this.Text = "Flight Monitor";
this.Load += new System.EventHandler(this.MainForm_Load);
this.ResumeLayout(false);
this.PerformLayout();

}
}
}

You might also like