diff --git a/Demo.WindowsForms/Forms/MainForm.Designer.cs b/Demo.WindowsForms/Forms/MainForm.Designer.cs --- a/Demo.WindowsForms/Forms/MainForm.Designer.cs +++ b/Demo.WindowsForms/Forms/MainForm.Designer.cs @@ -32,6 +32,71 @@ this.panel4 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.btnTest = new System.Windows.Forms.Button(); + this.MainMap = new Demo.WindowsForms.Map(); + this.splitter1 = new BSE.Windows.Forms.Splitter(); + this.panelMenu = new BSE.Windows.Forms.Panel(); + this.xPanderPanelList1 = new BSE.Windows.Forms.XPanderPanelList(); + this.xPanderPanelMain = new BSE.Windows.Forms.XPanderPanel(); + this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); + this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel(); + this.gboxRemove = new System.Windows.Forms.GroupBox(); + this.btnClearAll = new System.Windows.Forms.Button(); + this.btnClearMarkers = new System.Windows.Forms.Button(); + this.btnClearRoutes = new System.Windows.Forms.Button(); + this.gboxMapItems = new System.Windows.Forms.GroupBox(); + this.btnAddMarker = new System.Windows.Forms.Button(); + this.btnSetEnd = new System.Windows.Forms.Button(); + this.btnSetStart = new System.Windows.Forms.Button(); + this.btnAddRoute = new System.Windows.Forms.Button(); + this.gboxGmap = new System.Windows.Forms.GroupBox(); + this.btnGetStatic = new System.Windows.Forms.Button(); + this.xboxGrid = new System.Windows.Forms.CheckBox(); + this.btnSaveView = new System.Windows.Forms.Button(); + this.lblMode = new System.Windows.Forms.Label(); + this.comboBoxMode = new System.Windows.Forms.ComboBox(); + this.xboxCanDrag = new System.Windows.Forms.CheckBox(); + this.xboxCurrentMarker = new System.Windows.Forms.CheckBox(); + this.lblMapType = new System.Windows.Forms.Label(); + this.comboBoxMapType = new System.Windows.Forms.ComboBox(); + this.gboxCoordinates = new System.Windows.Forms.GroupBox(); + this.btnZoomCenter = new System.Windows.Forms.Button(); + this.btnReload = new System.Windows.Forms.Button(); + this.btnGoToCoords = new System.Windows.Forms.Button(); + this.lblLng = new System.Windows.Forms.Label(); + this.cboxCollectData = new System.Windows.Forms.CheckBox(); + this.lblLat = new System.Windows.Forms.Label(); + this.textBoxLng = new System.Windows.Forms.TextBox(); + this.textBoxLat = new System.Windows.Forms.TextBox(); + this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel(); + this.btnZoomIn = new System.Windows.Forms.Button(); + this.trackBarZoomLevel = new System.Windows.Forms.TrackBar(); + this.btnZoomOut = new System.Windows.Forms.Button(); + this.xPanderPanelInfo = new BSE.Windows.Forms.XPanderPanel(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.textBoxZoomCurrent = new System.Windows.Forms.TextBox(); + this.textBoxrouteCount = new System.Windows.Forms.TextBox(); + this.label12 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.textBoxLngCurrent = new System.Windows.Forms.TextBox(); + this.textBoxMarkerCount = new System.Windows.Forms.TextBox(); + this.label11 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.textBoxLatCurrent = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.xPanderPanelCache = new BSE.Windows.Forms.XPanderPanel(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.textBoxCacheSize = new System.Windows.Forms.TextBox(); + this.textBoxCacheStatus = new System.Windows.Forms.TextBox(); + this.btnCacheImport = new System.Windows.Forms.Button(); + this.textBoxMemory = new System.Windows.Forms.TextBox(); + this.checkBoxUseRouteCache = new System.Windows.Forms.CheckBox(); + this.btnCacheExport = new System.Windows.Forms.Button(); + this.btnCachePrefetch = new System.Windows.Forms.Button(); + this.label10 = new System.Windows.Forms.Label(); + this.btnCacheClear = new System.Windows.Forms.Button(); + this.label13 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.btnCacheLocationOpen = new System.Windows.Forms.Button(); this.tabControl = new System.Windows.Forms.TabControl(); this.tabGraphs = new System.Windows.Forms.TabPage(); this.pnlDataListDisplay = new System.Windows.Forms.Panel(); @@ -104,80 +169,24 @@ this.label1 = new System.Windows.Forms.Label(); this.tboxMessageBox = new System.Windows.Forms.TextBox(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.MainMap = new Demo.WindowsForms.Map(); - this.splitter1 = new BSE.Windows.Forms.Splitter(); - this.panelMenu = new BSE.Windows.Forms.Panel(); - this.xPanderPanelList1 = new BSE.Windows.Forms.XPanderPanelList(); - this.xPanderPanelMain = new BSE.Windows.Forms.XPanderPanel(); - this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); - this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel(); - this.gboxRemove = new System.Windows.Forms.GroupBox(); - this.btnClearAll = new System.Windows.Forms.Button(); - this.btnClearMarkers = new System.Windows.Forms.Button(); - this.btnClearRoutes = new System.Windows.Forms.Button(); - this.gboxMapItems = new System.Windows.Forms.GroupBox(); - this.buttonExportToGpx = new System.Windows.Forms.Button(); - this.xboxPlacemarkInfo = new System.Windows.Forms.CheckBox(); - this.MobileLogTo = new System.Windows.Forms.DateTimePicker(); - this.MobileLogFrom = new System.Windows.Forms.DateTimePicker(); - this.btnMobileLog = new System.Windows.Forms.Button(); - this.btnAddMarker = new System.Windows.Forms.Button(); - this.btnSetEnd = new System.Windows.Forms.Button(); - this.btnSetStart = new System.Windows.Forms.Button(); - this.btnAddRoute = new System.Windows.Forms.Button(); - this.gboxGmap = new System.Windows.Forms.GroupBox(); - this.btnLoadGPX = new System.Windows.Forms.Button(); - this.btnGetStatic = new System.Windows.Forms.Button(); - this.xboxGrid = new System.Windows.Forms.CheckBox(); - this.btnSaveView = new System.Windows.Forms.Button(); - this.lblMode = new System.Windows.Forms.Label(); - this.comboBoxMode = new System.Windows.Forms.ComboBox(); - this.xboxCanDrag = new System.Windows.Forms.CheckBox(); - this.xboxCurrentMarker = new System.Windows.Forms.CheckBox(); - this.lblMapType = new System.Windows.Forms.Label(); - this.comboBoxMapType = new System.Windows.Forms.ComboBox(); - this.gboxCoordinates = new System.Windows.Forms.GroupBox(); - this.btnZoomCenter = new System.Windows.Forms.Button(); - this.btnReload = new System.Windows.Forms.Button(); - this.btnGoToCoords = new System.Windows.Forms.Button(); - this.lblLng = new System.Windows.Forms.Label(); - this.cboxCollectData = new System.Windows.Forms.CheckBox(); - this.lblLat = new System.Windows.Forms.Label(); - this.textBoxLng = new System.Windows.Forms.TextBox(); - this.textBoxLat = new System.Windows.Forms.TextBox(); - this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel(); - this.btnZoomIn = new System.Windows.Forms.Button(); - this.trackBarZoomLevel = new System.Windows.Forms.TrackBar(); - this.btnZoomOut = new System.Windows.Forms.Button(); - this.xPanderPanelInfo = new BSE.Windows.Forms.XPanderPanel(); - this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.textBoxZoomCurrent = new System.Windows.Forms.TextBox(); - this.textBoxrouteCount = new System.Windows.Forms.TextBox(); - this.label12 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.textBoxLngCurrent = new System.Windows.Forms.TextBox(); - this.textBoxMarkerCount = new System.Windows.Forms.TextBox(); - this.label11 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.textBoxLatCurrent = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.xPanderPanelCache = new BSE.Windows.Forms.XPanderPanel(); - this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.textBoxCacheSize = new System.Windows.Forms.TextBox(); - this.textBoxCacheStatus = new System.Windows.Forms.TextBox(); - this.button10 = new System.Windows.Forms.Button(); - this.textBoxMemory = new System.Windows.Forms.TextBox(); - this.checkBoxUseRouteCache = new System.Windows.Forms.CheckBox(); - this.button9 = new System.Windows.Forms.Button(); - this.button11 = new System.Windows.Forms.Button(); - this.label10 = new System.Windows.Forms.Label(); - this.button2 = new System.Windows.Forms.Button(); - this.label13 = new System.Windows.Forms.Label(); - this.label14 = new System.Windows.Forms.Label(); - this.button17 = new System.Windows.Forms.Button(); this.tabMap.SuspendLayout(); this.panel4.SuspendLayout(); this.panel2.SuspendLayout(); + this.panelMenu.SuspendLayout(); + this.xPanderPanelList1.SuspendLayout(); + this.xPanderPanelMain.SuspendLayout(); + this.tableLayoutPanel4.SuspendLayout(); + this.tableLayoutPanel5.SuspendLayout(); + this.gboxRemove.SuspendLayout(); + this.gboxMapItems.SuspendLayout(); + this.gboxGmap.SuspendLayout(); + this.gboxCoordinates.SuspendLayout(); + this.tableLayoutPanel6.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarZoomLevel)).BeginInit(); + this.xPanderPanelInfo.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); + this.xPanderPanelCache.SuspendLayout(); + this.tableLayoutPanel1.SuspendLayout(); this.tabControl.SuspendLayout(); this.tabGraphs.SuspendLayout(); this.pnlDataListDisplay.SuspendLayout(); @@ -200,21 +209,6 @@ this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); - this.panelMenu.SuspendLayout(); - this.xPanderPanelList1.SuspendLayout(); - this.xPanderPanelMain.SuspendLayout(); - this.tableLayoutPanel4.SuspendLayout(); - this.tableLayoutPanel5.SuspendLayout(); - this.gboxRemove.SuspendLayout(); - this.gboxMapItems.SuspendLayout(); - this.gboxGmap.SuspendLayout(); - this.gboxCoordinates.SuspendLayout(); - this.tableLayoutPanel6.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarZoomLevel)).BeginInit(); - this.xPanderPanelInfo.SuspendLayout(); - this.tableLayoutPanel2.SuspendLayout(); - this.xPanderPanelCache.SuspendLayout(); - this.tableLayoutPanel1.SuspendLayout(); this.SuspendLayout(); // // tabMap @@ -263,6 +257,944 @@ this.btnTest.UseVisualStyleBackColor = true; this.btnTest.Click += new System.EventHandler(this.btnTest_Click); // + // MainMap + // + this.MainMap.Bearing = 0F; + this.MainMap.CanDragMap = true; + this.MainMap.Dock = System.Windows.Forms.DockStyle.Fill; + this.MainMap.EmptyTileColor = System.Drawing.Color.Navy; + this.MainMap.GrayScaleMode = false; + this.MainMap.HelperLineOption = GMap.NET.WindowsForms.HelperLineOptions.DontShow; + this.MainMap.LevelsKeepInMemmory = 5; + this.MainMap.Location = new System.Drawing.Point(0, 0); + this.MainMap.MarkersEnabled = true; + this.MainMap.MaxZoom = 17; + this.MainMap.MinZoom = 2; + this.MainMap.MouseWheelZoomType = GMap.NET.MouseWheelZoomType.MousePositionAndCenter; + this.MainMap.Name = "MainMap"; + this.MainMap.NegativeMode = false; + this.MainMap.PolygonsEnabled = true; + this.MainMap.RetryLoadTile = 0; + this.MainMap.RoutesEnabled = true; + this.MainMap.ScaleMode = GMap.NET.WindowsForms.ScaleModes.Integer; + this.MainMap.SelectedAreaFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(65)))), ((int)(((byte)(105)))), ((int)(((byte)(225))))); + this.MainMap.ShowTileGridLines = false; + this.MainMap.Size = new System.Drawing.Size(599, 684); + this.MainMap.TabIndex = 0; + this.MainMap.Zoom = 0D; + // + // splitter1 + // + this.splitter1.BackColor = System.Drawing.Color.Transparent; + this.splitter1.Dock = System.Windows.Forms.DockStyle.Right; + this.splitter1.Enabled = false; + this.splitter1.Location = new System.Drawing.Point(597, 0); + this.splitter1.Margin = new System.Windows.Forms.Padding(2); + this.splitter1.MinExtra = 390; + this.splitter1.MinSize = 390; + this.splitter1.Name = "splitter1"; + this.splitter1.Size = new System.Drawing.Size(2, 684); + this.splitter1.TabIndex = 42; + this.splitter1.TabStop = false; + // + // panelMenu + // + this.panelMenu.AssociatedSplitter = this.splitter1; + this.panelMenu.BackColor = System.Drawing.Color.Transparent; + this.panelMenu.CaptionFont = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.panelMenu.CaptionHeight = 27; + this.panelMenu.Controls.Add(this.xPanderPanelList1); + this.panelMenu.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); + this.panelMenu.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; + this.panelMenu.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; + this.panelMenu.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.panelMenu.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; + this.panelMenu.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); + this.panelMenu.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.panelMenu.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.panelMenu.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; + this.panelMenu.CustomColors.CollapsedCaptionText = System.Drawing.SystemColors.ControlText; + this.panelMenu.CustomColors.ContentGradientBegin = System.Drawing.SystemColors.ButtonFace; + this.panelMenu.CustomColors.ContentGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.panelMenu.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; + this.panelMenu.Dock = System.Windows.Forms.DockStyle.Right; + this.panelMenu.ForeColor = System.Drawing.SystemColors.ControlText; + this.panelMenu.Image = null; + this.panelMenu.LinearGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; + this.panelMenu.Location = new System.Drawing.Point(599, 0); + this.panelMenu.Margin = new System.Windows.Forms.Padding(2); + this.panelMenu.MinimumSize = new System.Drawing.Size(27, 27); + this.panelMenu.Name = "panelMenu"; + this.panelMenu.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; + this.panelMenu.ShowExpandIcon = true; + this.panelMenu.Size = new System.Drawing.Size(258, 684); + this.panelMenu.TabIndex = 40; + this.panelMenu.Text = "Menu"; + this.panelMenu.ToolTipTextCloseIcon = null; + this.panelMenu.ToolTipTextExpandIconPanelCollapsed = "maximize"; + this.panelMenu.ToolTipTextExpandIconPanelExpanded = "minimize"; + // + // xPanderPanelList1 + // + this.xPanderPanelList1.CaptionStyle = BSE.Windows.Forms.CaptionStyle.Flat; + this.xPanderPanelList1.Controls.Add(this.xPanderPanelMain); + this.xPanderPanelList1.Controls.Add(this.xPanderPanelInfo); + this.xPanderPanelList1.Controls.Add(this.xPanderPanelCache); + this.xPanderPanelList1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xPanderPanelList1.GradientBackground = System.Drawing.Color.Empty; + this.xPanderPanelList1.Location = new System.Drawing.Point(0, 28); + this.xPanderPanelList1.Margin = new System.Windows.Forms.Padding(2); + this.xPanderPanelList1.Name = "xPanderPanelList1"; + this.xPanderPanelList1.PanelColors = null; + this.xPanderPanelList1.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; + this.xPanderPanelList1.ShowExpandIcon = true; + this.xPanderPanelList1.Size = new System.Drawing.Size(258, 655); + this.xPanderPanelList1.TabIndex = 0; + this.xPanderPanelList1.Text = "xPanderPanelList1"; + // + // xPanderPanelMain + // + this.xPanderPanelMain.CaptionFont = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.xPanderPanelMain.Controls.Add(this.tableLayoutPanel4); + this.xPanderPanelMain.CustomColors.BackColor = System.Drawing.SystemColors.Control; + this.xPanderPanelMain.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); + this.xPanderPanelMain.CustomColors.CaptionCheckedGradientBegin = System.Drawing.Color.Empty; + this.xPanderPanelMain.CustomColors.CaptionCheckedGradientEnd = System.Drawing.Color.Empty; + this.xPanderPanelMain.CustomColors.CaptionCheckedGradientMiddle = System.Drawing.Color.Empty; + this.xPanderPanelMain.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; + this.xPanderPanelMain.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; + this.xPanderPanelMain.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.xPanderPanelMain.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; + this.xPanderPanelMain.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); + this.xPanderPanelMain.CustomColors.CaptionPressedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelMain.CustomColors.CaptionPressedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelMain.CustomColors.CaptionPressedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelMain.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelMain.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelMain.CustomColors.CaptionSelectedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelMain.CustomColors.CaptionSelectedText = System.Drawing.SystemColors.ControlText; + this.xPanderPanelMain.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; + this.xPanderPanelMain.CustomColors.FlatCaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); + this.xPanderPanelMain.CustomColors.FlatCaptionGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.xPanderPanelMain.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; + this.xPanderPanelMain.ForeColor = System.Drawing.SystemColors.ControlText; + this.xPanderPanelMain.Image = null; + this.xPanderPanelMain.IsClosable = false; + this.xPanderPanelMain.Margin = new System.Windows.Forms.Padding(2); + this.xPanderPanelMain.Name = "xPanderPanelMain"; + this.xPanderPanelMain.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; + this.xPanderPanelMain.Size = new System.Drawing.Size(258, 25); + this.xPanderPanelMain.TabIndex = 0; + this.xPanderPanelMain.Text = "map"; + this.xPanderPanelMain.ToolTipTextCloseIcon = null; + this.xPanderPanelMain.ToolTipTextExpandIconPanelCollapsed = null; + this.xPanderPanelMain.ToolTipTextExpandIconPanelExpanded = null; + this.xPanderPanelMain.Click += new System.EventHandler(this.xPanderPanel1_Click); + // + // tableLayoutPanel4 + // + this.tableLayoutPanel4.ColumnCount = 2; + this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); + this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 49.27536F)); + this.tableLayoutPanel4.Controls.Add(this.tableLayoutPanel5, 1, 0); + this.tableLayoutPanel4.Controls.Add(this.tableLayoutPanel6, 0, 0); + this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel4.Location = new System.Drawing.Point(1, 25); + this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(2); + this.tableLayoutPanel4.Name = "tableLayoutPanel4"; + this.tableLayoutPanel4.RowCount = 1; + this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel4.Size = new System.Drawing.Size(256, 0); + this.tableLayoutPanel4.TabIndex = 38; + // + // tableLayoutPanel5 + // + this.tableLayoutPanel5.ColumnCount = 1; + this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel5.Controls.Add(this.gboxRemove, 0, 3); + this.tableLayoutPanel5.Controls.Add(this.gboxMapItems, 0, 2); + this.tableLayoutPanel5.Controls.Add(this.gboxGmap, 0, 1); + this.tableLayoutPanel5.Controls.Add(this.gboxCoordinates, 0, 0); + this.tableLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel5.Location = new System.Drawing.Point(48, 0); + this.tableLayoutPanel5.Margin = new System.Windows.Forms.Padding(0, 0, 2, 2); + this.tableLayoutPanel5.Name = "tableLayoutPanel5"; + this.tableLayoutPanel5.RowCount = 5; + this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 6F)); + this.tableLayoutPanel5.Size = new System.Drawing.Size(206, 1); + this.tableLayoutPanel5.TabIndex = 30; + // + // gboxRemove + // + this.gboxRemove.AutoSize = true; + this.gboxRemove.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.gboxRemove.Controls.Add(this.btnClearAll); + this.gboxRemove.Controls.Add(this.btnClearMarkers); + this.gboxRemove.Controls.Add(this.btnClearRoutes); + this.gboxRemove.Dock = System.Windows.Forms.DockStyle.Fill; + this.gboxRemove.Location = new System.Drawing.Point(3, 450); + this.gboxRemove.Name = "gboxRemove"; + this.gboxRemove.Size = new System.Drawing.Size(200, 91); + this.gboxRemove.TabIndex = 37; + this.gboxRemove.TabStop = false; + this.gboxRemove.Text = "Remove Map Item"; + // + // btnClearAll + // + this.btnClearAll.Location = new System.Drawing.Point(9, 49); + this.btnClearAll.Name = "btnClearAll"; + this.btnClearAll.Size = new System.Drawing.Size(75, 23); + this.btnClearAll.TabIndex = 46; + this.btnClearAll.Text = "Clear All"; + this.btnClearAll.UseVisualStyleBackColor = true; + this.btnClearAll.Click += new System.EventHandler(this.btnClearAll_Click); + // + // btnClearMarkers + // + this.btnClearMarkers.AutoSize = true; + this.btnClearMarkers.Location = new System.Drawing.Point(68, 19); + this.btnClearMarkers.Name = "btnClearMarkers"; + this.btnClearMarkers.Size = new System.Drawing.Size(63, 24); + this.btnClearMarkers.TabIndex = 13; + this.btnClearMarkers.Text = "Markers"; + this.btnClearMarkers.UseVisualStyleBackColor = true; + this.btnClearMarkers.Click += new System.EventHandler(this.btnClearMarkers_Click); + // + // btnClearRoutes + // + this.btnClearRoutes.AutoSize = true; + this.btnClearRoutes.Location = new System.Drawing.Point(9, 19); + this.btnClearRoutes.Name = "btnClearRoutes"; + this.btnClearRoutes.Size = new System.Drawing.Size(55, 24); + this.btnClearRoutes.TabIndex = 34; + this.btnClearRoutes.Text = "Routes"; + this.btnClearRoutes.UseVisualStyleBackColor = true; + this.btnClearRoutes.Click += new System.EventHandler(this.btnClearRoutes_Click); + // + // gboxMapItems + // + this.gboxMapItems.AutoSize = true; + this.gboxMapItems.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.gboxMapItems.Controls.Add(this.btnAddMarker); + this.gboxMapItems.Controls.Add(this.btnSetEnd); + this.gboxMapItems.Controls.Add(this.btnSetStart); + this.gboxMapItems.Controls.Add(this.btnAddRoute); + this.gboxMapItems.Dock = System.Windows.Forms.DockStyle.Fill; + this.gboxMapItems.Location = new System.Drawing.Point(3, 322); + this.gboxMapItems.Name = "gboxMapItems"; + this.gboxMapItems.Size = new System.Drawing.Size(200, 122); + this.gboxMapItems.TabIndex = 35; + this.gboxMapItems.TabStop = false; + this.gboxMapItems.Text = "Add Map Item"; + // + // btnAddMarker + // + this.btnAddMarker.Location = new System.Drawing.Point(9, 79); + this.btnAddMarker.Name = "btnAddMarker"; + this.btnAddMarker.Size = new System.Drawing.Size(82, 24); + this.btnAddMarker.TabIndex = 12; + this.btnAddMarker.Text = "Add Marker"; + this.btnAddMarker.UseVisualStyleBackColor = true; + this.btnAddMarker.Click += new System.EventHandler(this.addUserMarker); + // + // btnSetEnd + // + this.btnSetEnd.Location = new System.Drawing.Point(97, 19); + this.btnSetEnd.Name = "btnSetEnd"; + this.btnSetEnd.Size = new System.Drawing.Size(73, 24); + this.btnSetEnd.TabIndex = 42; + this.btnSetEnd.Text = "set End"; + this.btnSetEnd.UseVisualStyleBackColor = true; + this.btnSetEnd.Click += new System.EventHandler(this.buttonSetEnd_Click); + // + // btnSetStart + // + this.btnSetStart.Location = new System.Drawing.Point(9, 19); + this.btnSetStart.Name = "btnSetStart"; + this.btnSetStart.Size = new System.Drawing.Size(82, 24); + this.btnSetStart.TabIndex = 41; + this.btnSetStart.Text = "set Start"; + this.btnSetStart.UseVisualStyleBackColor = true; + this.btnSetStart.Click += new System.EventHandler(this.buttonSetStart_Click); + // + // btnAddRoute + // + this.btnAddRoute.Location = new System.Drawing.Point(97, 49); + this.btnAddRoute.Name = "btnAddRoute"; + this.btnAddRoute.Size = new System.Drawing.Size(73, 24); + this.btnAddRoute.TabIndex = 33; + this.btnAddRoute.Text = "Add Route"; + this.btnAddRoute.UseVisualStyleBackColor = true; + this.btnAddRoute.Click += new System.EventHandler(this.btnAddRoute_Click); + // + // gboxGmap + // + this.gboxGmap.AutoSize = true; + this.gboxGmap.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.gboxGmap.Controls.Add(this.btnGetStatic); + this.gboxGmap.Controls.Add(this.xboxGrid); + this.gboxGmap.Controls.Add(this.btnSaveView); + this.gboxGmap.Controls.Add(this.lblMode); + this.gboxGmap.Controls.Add(this.comboBoxMode); + this.gboxGmap.Controls.Add(this.xboxCanDrag); + this.gboxGmap.Controls.Add(this.xboxCurrentMarker); + this.gboxGmap.Controls.Add(this.lblMapType); + this.gboxGmap.Controls.Add(this.comboBoxMapType); + this.gboxGmap.Dock = System.Windows.Forms.DockStyle.Fill; + this.gboxGmap.Location = new System.Drawing.Point(3, 153); + this.gboxGmap.Name = "gboxGmap"; + this.gboxGmap.Size = new System.Drawing.Size(200, 163); + this.gboxGmap.TabIndex = 31; + this.gboxGmap.TabStop = false; + this.gboxGmap.Text = "gmap"; + // + // btnGetStatic + // + this.btnGetStatic.AutoSize = true; + this.btnGetStatic.Location = new System.Drawing.Point(9, 121); + this.btnGetStatic.Margin = new System.Windows.Forms.Padding(2); + this.btnGetStatic.Name = "btnGetStatic"; + this.btnGetStatic.Size = new System.Drawing.Size(73, 24); + this.btnGetStatic.TabIndex = 41; + this.btnGetStatic.Text = "Area Image"; + this.btnGetStatic.UseVisualStyleBackColor = true; + this.btnGetStatic.Click += new System.EventHandler(this.btnGetStatic_Click); + // + // xboxGrid + // + this.xboxGrid.AutoSize = true; + this.xboxGrid.Location = new System.Drawing.Point(104, 74); + this.xboxGrid.Margin = new System.Windows.Forms.Padding(2); + this.xboxGrid.Name = "xboxGrid"; + this.xboxGrid.Size = new System.Drawing.Size(45, 17); + this.xboxGrid.TabIndex = 40; + this.xboxGrid.Text = "Grid"; + this.xboxGrid.UseVisualStyleBackColor = true; + this.xboxGrid.CheckedChanged += new System.EventHandler(this.showGridlines); + // + // btnSaveView + // + this.btnSaveView.AutoSize = true; + this.btnSaveView.Location = new System.Drawing.Point(92, 121); + this.btnSaveView.Margin = new System.Windows.Forms.Padding(2); + this.btnSaveView.Name = "btnSaveView"; + this.btnSaveView.Size = new System.Drawing.Size(74, 24); + this.btnSaveView.TabIndex = 39; + this.btnSaveView.Text = "Create PNG"; + this.btnSaveView.UseVisualStyleBackColor = true; + this.btnSaveView.Click += new System.EventHandler(this.btnSaveView_Click); + // + // lblMode + // + this.lblMode.AutoSize = true; + this.lblMode.Location = new System.Drawing.Point(132, 49); + this.lblMode.Name = "lblMode"; + this.lblMode.Size = new System.Drawing.Size(34, 13); + this.lblMode.TabIndex = 38; + this.lblMode.Text = "Mode"; + // + // comboBoxMode + // + this.comboBoxMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxMode.FormattingEnabled = true; + this.comboBoxMode.Location = new System.Drawing.Point(8, 46); + this.comboBoxMode.Name = "comboBoxMode"; + this.comboBoxMode.Size = new System.Drawing.Size(123, 21); + this.comboBoxMode.TabIndex = 37; + this.comboBoxMode.DropDownClosed += new System.EventHandler(this.comboBoxMode_DropDownClosed); + // + // xboxCanDrag + // + this.xboxCanDrag.AutoSize = true; + this.xboxCanDrag.Checked = true; + this.xboxCanDrag.CheckState = System.Windows.Forms.CheckState.Checked; + this.xboxCanDrag.Location = new System.Drawing.Point(9, 95); + this.xboxCanDrag.Name = "xboxCanDrag"; + this.xboxCanDrag.Size = new System.Drawing.Size(73, 17); + this.xboxCanDrag.TabIndex = 36; + this.xboxCanDrag.Text = "Drag Map"; + this.xboxCanDrag.UseVisualStyleBackColor = true; + this.xboxCanDrag.CheckedChanged += new System.EventHandler(this.checkBoxCanDrag_CheckedChanged); + // + // xboxCurrentMarker + // + this.xboxCurrentMarker.AutoSize = true; + this.xboxCurrentMarker.Checked = true; + this.xboxCurrentMarker.CheckState = System.Windows.Forms.CheckState.Checked; + this.xboxCurrentMarker.Location = new System.Drawing.Point(9, 73); + this.xboxCurrentMarker.Name = "xboxCurrentMarker"; + this.xboxCurrentMarker.Size = new System.Drawing.Size(96, 17); + this.xboxCurrentMarker.TabIndex = 35; + this.xboxCurrentMarker.Text = "Current Marker"; + this.xboxCurrentMarker.UseVisualStyleBackColor = true; + this.xboxCurrentMarker.CheckedChanged += new System.EventHandler(this.checkBoxCurrentMarker_CheckedChanged); + // + // lblMapType + // + this.lblMapType.AutoSize = true; + this.lblMapType.Location = new System.Drawing.Point(132, 22); + this.lblMapType.Name = "lblMapType"; + this.lblMapType.Size = new System.Drawing.Size(55, 13); + this.lblMapType.TabIndex = 31; + this.lblMapType.Text = "Map Type"; + // + // comboBoxMapType + // + this.comboBoxMapType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxMapType.FormattingEnabled = true; + this.comboBoxMapType.Location = new System.Drawing.Point(8, 19); + this.comboBoxMapType.Name = "comboBoxMapType"; + this.comboBoxMapType.Size = new System.Drawing.Size(123, 21); + this.comboBoxMapType.TabIndex = 9; + this.comboBoxMapType.DropDownClosed += new System.EventHandler(this.comboBoxMapType_DropDownClosed); + // + // gboxCoordinates + // + this.gboxCoordinates.AutoSize = true; + this.gboxCoordinates.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.gboxCoordinates.Controls.Add(this.btnZoomCenter); + this.gboxCoordinates.Controls.Add(this.btnReload); + this.gboxCoordinates.Controls.Add(this.btnGoToCoords); + this.gboxCoordinates.Controls.Add(this.lblLng); + this.gboxCoordinates.Controls.Add(this.cboxCollectData); + this.gboxCoordinates.Controls.Add(this.lblLat); + this.gboxCoordinates.Controls.Add(this.textBoxLng); + this.gboxCoordinates.Controls.Add(this.textBoxLat); + this.gboxCoordinates.Dock = System.Windows.Forms.DockStyle.Fill; + this.gboxCoordinates.Location = new System.Drawing.Point(3, 3); + this.gboxCoordinates.Name = "gboxCoordinates"; + this.gboxCoordinates.Size = new System.Drawing.Size(200, 144); + this.gboxCoordinates.TabIndex = 28; + this.gboxCoordinates.TabStop = false; + this.gboxCoordinates.Text = "coordinates"; + // + // btnZoomCenter + // + this.btnZoomCenter.Location = new System.Drawing.Point(84, 71); + this.btnZoomCenter.Name = "btnZoomCenter"; + this.btnZoomCenter.Size = new System.Drawing.Size(82, 24); + this.btnZoomCenter.TabIndex = 15; + this.btnZoomCenter.Text = "Zoom Center"; + this.btnZoomCenter.UseVisualStyleBackColor = true; + this.btnZoomCenter.Click += new System.EventHandler(this.button7_Click); + // + // btnReload + // + this.btnReload.Location = new System.Drawing.Point(6, 101); + this.btnReload.Name = "btnReload"; + this.btnReload.Size = new System.Drawing.Size(74, 24); + this.btnReload.TabIndex = 9; + this.btnReload.Text = "Reload"; + this.btnReload.UseVisualStyleBackColor = true; + this.btnReload.Click += new System.EventHandler(this.btnReload_Click); + // + // btnGoToCoords + // + this.btnGoToCoords.Location = new System.Drawing.Point(6, 71); + this.btnGoToCoords.Name = "btnGoToCoords"; + this.btnGoToCoords.Size = new System.Drawing.Size(72, 24); + this.btnGoToCoords.TabIndex = 8; + this.btnGoToCoords.Text = "GoTo !"; + this.btnGoToCoords.UseVisualStyleBackColor = true; + this.btnGoToCoords.Click += new System.EventHandler(this.btnGoToCoords_Click); + // + // lblLng + // + this.lblLng.AutoSize = true; + this.lblLng.Location = new System.Drawing.Point(135, 48); + this.lblLng.Name = "lblLng"; + this.lblLng.Size = new System.Drawing.Size(54, 13); + this.lblLng.TabIndex = 3; + this.lblLng.Text = "Longitude"; + // + // cboxCollectData + // + this.cboxCollectData.AutoSize = true; + this.cboxCollectData.Location = new System.Drawing.Point(86, 106); + this.cboxCollectData.Name = "cboxCollectData"; + this.cboxCollectData.Size = new System.Drawing.Size(84, 17); + this.cboxCollectData.TabIndex = 38; + this.cboxCollectData.Text = "Collect Data"; + this.cboxCollectData.UseVisualStyleBackColor = true; + // + // lblLat + // + this.lblLat.AutoSize = true; + this.lblLat.Location = new System.Drawing.Point(135, 22); + this.lblLat.Name = "lblLat"; + this.lblLat.Size = new System.Drawing.Size(45, 13); + this.lblLat.TabIndex = 2; + this.lblLat.Text = "Latitude"; + // + // textBoxLng + // + this.textBoxLng.Location = new System.Drawing.Point(9, 45); + this.textBoxLng.Name = "textBoxLng"; + this.textBoxLng.Size = new System.Drawing.Size(122, 20); + this.textBoxLng.TabIndex = 1; + this.textBoxLng.Text = "-83.809848"; + // + // textBoxLat + // + this.textBoxLat.Location = new System.Drawing.Point(9, 19); + this.textBoxLat.Name = "textBoxLat"; + this.textBoxLat.Size = new System.Drawing.Size(122, 20); + this.textBoxLat.TabIndex = 0; + this.textBoxLat.Text = "39.751248"; + // + // tableLayoutPanel6 + // + this.tableLayoutPanel6.ColumnCount = 1; + this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanel6.Controls.Add(this.btnZoomIn, 0, 0); + this.tableLayoutPanel6.Controls.Add(this.trackBarZoomLevel, 0, 1); + this.tableLayoutPanel6.Controls.Add(this.btnZoomOut, 0, 2); + this.tableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel6.Location = new System.Drawing.Point(2, 2); + this.tableLayoutPanel6.Margin = new System.Windows.Forms.Padding(2); + this.tableLayoutPanel6.Name = "tableLayoutPanel6"; + this.tableLayoutPanel6.RowCount = 3; + this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel6.Size = new System.Drawing.Size(44, 1); + this.tableLayoutPanel6.TabIndex = 31; + // + // btnZoomIn + // + this.btnZoomIn.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnZoomIn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnZoomIn.Location = new System.Drawing.Point(0, 0); + this.btnZoomIn.Margin = new System.Windows.Forms.Padding(0); + this.btnZoomIn.Name = "btnZoomIn"; + this.btnZoomIn.Size = new System.Drawing.Size(45, 27); + this.btnZoomIn.TabIndex = 0; + this.btnZoomIn.Text = "+"; + this.btnZoomIn.UseVisualStyleBackColor = true; + this.btnZoomIn.Click += new System.EventHandler(this.buttonZoomUp_Click); + // + // trackBarZoomLevel + // + this.trackBarZoomLevel.BackColor = System.Drawing.Color.AliceBlue; + this.trackBarZoomLevel.Dock = System.Windows.Forms.DockStyle.Fill; + this.trackBarZoomLevel.LargeChange = 1; + this.trackBarZoomLevel.Location = new System.Drawing.Point(0, 27); + this.trackBarZoomLevel.Margin = new System.Windows.Forms.Padding(0); + this.trackBarZoomLevel.Maximum = 1700; + this.trackBarZoomLevel.Minimum = 1; + this.trackBarZoomLevel.Name = "trackBarZoomLevel"; + this.trackBarZoomLevel.Orientation = System.Windows.Forms.Orientation.Vertical; + this.trackBarZoomLevel.Size = new System.Drawing.Size(45, 1); + this.trackBarZoomLevel.TabIndex = 29; + this.trackBarZoomLevel.TickFrequency = 100; + this.trackBarZoomLevel.TickStyle = System.Windows.Forms.TickStyle.TopLeft; + this.trackBarZoomLevel.Value = 15; + this.trackBarZoomLevel.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); + // + // btnZoomOut + // + this.btnZoomOut.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnZoomOut.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnZoomOut.Location = new System.Drawing.Point(0, -26); + this.btnZoomOut.Margin = new System.Windows.Forms.Padding(0); + this.btnZoomOut.Name = "btnZoomOut"; + this.btnZoomOut.Size = new System.Drawing.Size(45, 27); + this.btnZoomOut.TabIndex = 1; + this.btnZoomOut.Text = "-"; + this.btnZoomOut.UseVisualStyleBackColor = true; + this.btnZoomOut.Click += new System.EventHandler(this.buttonZoomDown_Click); + // + // xPanderPanelInfo + // + this.xPanderPanelInfo.CaptionFont = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.xPanderPanelInfo.Controls.Add(this.tableLayoutPanel2); + this.xPanderPanelInfo.CustomColors.BackColor = System.Drawing.SystemColors.Control; + this.xPanderPanelInfo.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); + this.xPanderPanelInfo.CustomColors.CaptionCheckedGradientBegin = System.Drawing.Color.Empty; + this.xPanderPanelInfo.CustomColors.CaptionCheckedGradientEnd = System.Drawing.Color.Empty; + this.xPanderPanelInfo.CustomColors.CaptionCheckedGradientMiddle = System.Drawing.Color.Empty; + this.xPanderPanelInfo.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; + this.xPanderPanelInfo.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; + this.xPanderPanelInfo.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.xPanderPanelInfo.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; + this.xPanderPanelInfo.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); + this.xPanderPanelInfo.CustomColors.CaptionPressedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelInfo.CustomColors.CaptionPressedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelInfo.CustomColors.CaptionPressedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelInfo.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelInfo.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelInfo.CustomColors.CaptionSelectedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelInfo.CustomColors.CaptionSelectedText = System.Drawing.SystemColors.ControlText; + this.xPanderPanelInfo.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; + this.xPanderPanelInfo.CustomColors.FlatCaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); + this.xPanderPanelInfo.CustomColors.FlatCaptionGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.xPanderPanelInfo.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; + this.xPanderPanelInfo.ForeColor = System.Drawing.SystemColors.ControlText; + this.xPanderPanelInfo.Image = null; + this.xPanderPanelInfo.Margin = new System.Windows.Forms.Padding(2); + this.xPanderPanelInfo.Name = "xPanderPanelInfo"; + this.xPanderPanelInfo.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; + this.xPanderPanelInfo.Size = new System.Drawing.Size(258, 25); + this.xPanderPanelInfo.TabIndex = 3; + this.xPanderPanelInfo.Text = "info"; + this.xPanderPanelInfo.ToolTipTextCloseIcon = null; + this.xPanderPanelInfo.ToolTipTextExpandIconPanelCollapsed = null; + this.xPanderPanelInfo.ToolTipTextExpandIconPanelExpanded = null; + this.xPanderPanelInfo.Click += new System.EventHandler(this.xPanderPanelInfo_Click); + // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.ColumnCount = 3; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); + this.tableLayoutPanel2.Controls.Add(this.textBoxZoomCurrent, 1, 7); + this.tableLayoutPanel2.Controls.Add(this.textBoxrouteCount, 1, 11); + this.tableLayoutPanel2.Controls.Add(this.label12, 1, 10); + this.tableLayoutPanel2.Controls.Add(this.label9, 1, 6); + this.tableLayoutPanel2.Controls.Add(this.textBoxLngCurrent, 1, 4); + this.tableLayoutPanel2.Controls.Add(this.textBoxMarkerCount, 1, 9); + this.tableLayoutPanel2.Controls.Add(this.label11, 1, 8); + this.tableLayoutPanel2.Controls.Add(this.label4, 1, 3); + this.tableLayoutPanel2.Controls.Add(this.textBoxLatCurrent, 1, 2); + this.tableLayoutPanel2.Controls.Add(this.label5, 1, 1); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel2.Location = new System.Drawing.Point(1, 25); + this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(2); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 13; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(256, 0); + this.tableLayoutPanel2.TabIndex = 14; + // + // textBoxZoomCurrent + // + this.textBoxZoomCurrent.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBoxZoomCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxZoomCurrent.Location = new System.Drawing.Point(18, 142); + this.textBoxZoomCurrent.Name = "textBoxZoomCurrent"; + this.textBoxZoomCurrent.ReadOnly = true; + this.textBoxZoomCurrent.Size = new System.Drawing.Size(220, 28); + this.textBoxZoomCurrent.TabIndex = 8; + this.textBoxZoomCurrent.Text = "15"; + // + // textBoxrouteCount + // + this.textBoxrouteCount.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBoxrouteCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxrouteCount.Location = new System.Drawing.Point(18, 236); + this.textBoxrouteCount.Name = "textBoxrouteCount"; + this.textBoxrouteCount.ReadOnly = true; + this.textBoxrouteCount.Size = new System.Drawing.Size(220, 28); + this.textBoxrouteCount.TabIndex = 12; + this.textBoxrouteCount.Text = "..."; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(18, 220); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(39, 13); + this.label12.TabIndex = 13; + this.label12.Text = "routes:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(18, 126); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(35, 13); + this.label9.TabIndex = 9; + this.label9.Text = "zoom:"; + // + // textBoxLngCurrent + // + this.textBoxLngCurrent.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBoxLngCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxLngCurrent.Location = new System.Drawing.Point(18, 79); + this.textBoxLngCurrent.Name = "textBoxLngCurrent"; + this.textBoxLngCurrent.ReadOnly = true; + this.textBoxLngCurrent.Size = new System.Drawing.Size(220, 28); + this.textBoxLngCurrent.TabIndex = 5; + this.textBoxLngCurrent.Text = "..."; + // + // textBoxMarkerCount + // + this.textBoxMarkerCount.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBoxMarkerCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxMarkerCount.Location = new System.Drawing.Point(18, 189); + this.textBoxMarkerCount.Name = "textBoxMarkerCount"; + this.textBoxMarkerCount.ReadOnly = true; + this.textBoxMarkerCount.Size = new System.Drawing.Size(220, 28); + this.textBoxMarkerCount.TabIndex = 10; + this.textBoxMarkerCount.Text = "..."; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(18, 173); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(47, 13); + this.label11.TabIndex = 11; + this.label11.Text = "markers:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(18, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(24, 13); + this.label4.TabIndex = 7; + this.label4.Text = "lng:"; + // + // textBoxLatCurrent + // + this.textBoxLatCurrent.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBoxLatCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxLatCurrent.Location = new System.Drawing.Point(18, 32); + this.textBoxLatCurrent.Name = "textBoxLatCurrent"; + this.textBoxLatCurrent.ReadOnly = true; + this.textBoxLatCurrent.Size = new System.Drawing.Size(220, 28); + this.textBoxLatCurrent.TabIndex = 4; + this.textBoxLatCurrent.Text = "..."; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(18, 16); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(21, 13); + this.label5.TabIndex = 6; + this.label5.Text = "lat:"; + // + // xPanderPanelCache + // + this.xPanderPanelCache.CaptionFont = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.xPanderPanelCache.Controls.Add(this.tableLayoutPanel1); + this.xPanderPanelCache.CustomColors.BackColor = System.Drawing.SystemColors.Control; + this.xPanderPanelCache.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); + this.xPanderPanelCache.CustomColors.CaptionCheckedGradientBegin = System.Drawing.Color.Empty; + this.xPanderPanelCache.CustomColors.CaptionCheckedGradientEnd = System.Drawing.Color.Empty; + this.xPanderPanelCache.CustomColors.CaptionCheckedGradientMiddle = System.Drawing.Color.Empty; + this.xPanderPanelCache.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; + this.xPanderPanelCache.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; + this.xPanderPanelCache.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.xPanderPanelCache.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; + this.xPanderPanelCache.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); + this.xPanderPanelCache.CustomColors.CaptionPressedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelCache.CustomColors.CaptionPressedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelCache.CustomColors.CaptionPressedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelCache.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelCache.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelCache.CustomColors.CaptionSelectedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.xPanderPanelCache.CustomColors.CaptionSelectedText = System.Drawing.SystemColors.ControlText; + this.xPanderPanelCache.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; + this.xPanderPanelCache.CustomColors.FlatCaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); + this.xPanderPanelCache.CustomColors.FlatCaptionGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); + this.xPanderPanelCache.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; + this.xPanderPanelCache.Expand = true; + this.xPanderPanelCache.ForeColor = System.Drawing.SystemColors.ControlText; + this.xPanderPanelCache.Image = null; + this.xPanderPanelCache.IsClosable = false; + this.xPanderPanelCache.Margin = new System.Windows.Forms.Padding(2); + this.xPanderPanelCache.Name = "xPanderPanelCache"; + this.xPanderPanelCache.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; + this.xPanderPanelCache.Size = new System.Drawing.Size(258, 605); + this.xPanderPanelCache.TabIndex = 4; + this.xPanderPanelCache.Text = "cache"; + this.xPanderPanelCache.ToolTipTextCloseIcon = null; + this.xPanderPanelCache.ToolTipTextExpandIconPanelCollapsed = null; + this.xPanderPanelCache.ToolTipTextExpandIconPanelExpanded = null; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 3; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); + this.tableLayoutPanel1.Controls.Add(this.textBoxCacheSize, 1, 12); + this.tableLayoutPanel1.Controls.Add(this.textBoxCacheStatus, 1, 15); + this.tableLayoutPanel1.Controls.Add(this.btnCacheImport, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.textBoxMemory, 1, 9); + this.tableLayoutPanel1.Controls.Add(this.checkBoxUseRouteCache, 1, 17); + this.tableLayoutPanel1.Controls.Add(this.btnCacheExport, 1, 2); + this.tableLayoutPanel1.Controls.Add(this.btnCachePrefetch, 1, 3); + this.tableLayoutPanel1.Controls.Add(this.label10, 1, 8); + this.tableLayoutPanel1.Controls.Add(this.btnCacheClear, 1, 5); + this.tableLayoutPanel1.Controls.Add(this.label13, 1, 14); + this.tableLayoutPanel1.Controls.Add(this.label14, 1, 11); + this.tableLayoutPanel1.Controls.Add(this.btnCacheLocationOpen, 1, 6); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(1, 25); + this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 19; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(256, 580); + this.tableLayoutPanel1.TabIndex = 41; + // + // textBoxCacheSize + // + this.textBoxCacheSize.Dock = System.Windows.Forms.DockStyle.Top; + this.textBoxCacheSize.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxCacheSize.Location = new System.Drawing.Point(18, 238); + this.textBoxCacheSize.Name = "textBoxCacheSize"; + this.textBoxCacheSize.ReadOnly = true; + this.textBoxCacheSize.Size = new System.Drawing.Size(220, 28); + this.textBoxCacheSize.TabIndex = 49; + this.textBoxCacheSize.Text = "..."; + // + // textBoxCacheStatus + // + this.textBoxCacheStatus.Dock = System.Windows.Forms.DockStyle.Top; + this.textBoxCacheStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxCacheStatus.Location = new System.Drawing.Point(18, 301); + this.textBoxCacheStatus.Name = "textBoxCacheStatus"; + this.textBoxCacheStatus.ReadOnly = true; + this.textBoxCacheStatus.Size = new System.Drawing.Size(220, 28); + this.textBoxCacheStatus.TabIndex = 46; + this.textBoxCacheStatus.Text = "..."; + // + // btnCacheImport + // + this.btnCacheImport.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnCacheImport.Location = new System.Drawing.Point(18, 19); + this.btnCacheImport.Name = "btnCacheImport"; + this.btnCacheImport.Size = new System.Drawing.Size(220, 20); + this.btnCacheImport.TabIndex = 5; + this.btnCacheImport.Text = "Import"; + this.btnCacheImport.UseVisualStyleBackColor = true; + this.btnCacheImport.Click += new System.EventHandler(this.button10_Click); + // + // textBoxMemory + // + this.textBoxMemory.Dock = System.Windows.Forms.DockStyle.Top; + this.textBoxMemory.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxMemory.Location = new System.Drawing.Point(18, 175); + this.textBoxMemory.Name = "textBoxMemory"; + this.textBoxMemory.ReadOnly = true; + this.textBoxMemory.Size = new System.Drawing.Size(220, 28); + this.textBoxMemory.TabIndex = 39; + this.textBoxMemory.Text = "..."; + // + // checkBoxUseRouteCache + // + this.checkBoxUseRouteCache.AutoSize = true; + this.checkBoxUseRouteCache.Checked = true; + this.checkBoxUseRouteCache.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBoxUseRouteCache.Location = new System.Drawing.Point(18, 351); + this.checkBoxUseRouteCache.Name = "checkBoxUseRouteCache"; + this.checkBoxUseRouteCache.Size = new System.Drawing.Size(160, 17); + this.checkBoxUseRouteCache.TabIndex = 2; + this.checkBoxUseRouteCache.Text = "cache routing/geocodig/etc"; + this.checkBoxUseRouteCache.UseVisualStyleBackColor = true; + // + // btnCacheExport + // + this.btnCacheExport.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnCacheExport.Location = new System.Drawing.Point(18, 45); + this.btnCacheExport.Name = "btnCacheExport"; + this.btnCacheExport.Size = new System.Drawing.Size(220, 20); + this.btnCacheExport.TabIndex = 4; + this.btnCacheExport.Text = "Export"; + this.btnCacheExport.UseVisualStyleBackColor = true; + this.btnCacheExport.Click += new System.EventHandler(this.button9_Click); + // + // btnCachePrefetch + // + this.btnCachePrefetch.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnCachePrefetch.Location = new System.Drawing.Point(18, 71); + this.btnCachePrefetch.Name = "btnCachePrefetch"; + this.btnCachePrefetch.Size = new System.Drawing.Size(220, 20); + this.btnCachePrefetch.TabIndex = 38; + this.btnCachePrefetch.Text = "Prefetch selected area"; + this.btnCachePrefetch.UseVisualStyleBackColor = true; + this.btnCachePrefetch.Click += new System.EventHandler(this.button11_Click); + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(18, 159); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(111, 13); + this.label10.TabIndex = 40; + this.label10.Text = "memory cache usage:"; + // + // btnCacheClear + // + this.btnCacheClear.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnCacheClear.Location = new System.Drawing.Point(18, 97); + this.btnCacheClear.Name = "btnCacheClear"; + this.btnCacheClear.Size = new System.Drawing.Size(220, 20); + this.btnCacheClear.TabIndex = 43; + this.btnCacheClear.Text = "Clear tiles in disk cache"; + this.btnCacheClear.UseVisualStyleBackColor = true; + this.btnCacheClear.Click += new System.EventHandler(this.button2_Click); + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(18, 285); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(93, 13); + this.label13.TabIndex = 44; + this.label13.Text = "disk cache status:"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(18, 222); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(83, 13); + this.label14.TabIndex = 47; + this.label14.Text = "disk cache size:"; + // + // btnCacheLocationOpen + // + this.btnCacheLocationOpen.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnCacheLocationOpen.Location = new System.Drawing.Point(17, 122); + this.btnCacheLocationOpen.Margin = new System.Windows.Forms.Padding(2); + this.btnCacheLocationOpen.Name = "btnCacheLocationOpen"; + this.btnCacheLocationOpen.Size = new System.Drawing.Size(222, 19); + this.btnCacheLocationOpen.TabIndex = 50; + this.btnCacheLocationOpen.Text = "Open cache location"; + this.btnCacheLocationOpen.UseVisualStyleBackColor = true; + this.btnCacheLocationOpen.Click += new System.EventHandler(this.button17_Click); + // // tabControl // this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -1038,1010 +1970,6 @@ this.splitContainer1.SplitterDistance = 715; this.splitContainer1.TabIndex = 46; // - // MainMap - // - this.MainMap.Bearing = 0F; - this.MainMap.CanDragMap = true; - this.MainMap.Dock = System.Windows.Forms.DockStyle.Fill; - this.MainMap.EmptyTileColor = System.Drawing.Color.Navy; - this.MainMap.GrayScaleMode = false; - this.MainMap.HelperLineOption = GMap.NET.WindowsForms.HelperLineOptions.DontShow; - this.MainMap.LevelsKeepInMemmory = 5; - this.MainMap.Location = new System.Drawing.Point(0, 0); - this.MainMap.MarkersEnabled = true; - this.MainMap.MaxZoom = 17; - this.MainMap.MinZoom = 2; - this.MainMap.MouseWheelZoomType = GMap.NET.MouseWheelZoomType.MousePositionAndCenter; - this.MainMap.Name = "MainMap"; - this.MainMap.NegativeMode = false; - this.MainMap.PolygonsEnabled = true; - this.MainMap.RetryLoadTile = 0; - this.MainMap.RoutesEnabled = true; - this.MainMap.ScaleMode = GMap.NET.WindowsForms.ScaleModes.Integer; - this.MainMap.SelectedAreaFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(65)))), ((int)(((byte)(105)))), ((int)(((byte)(225))))); - this.MainMap.ShowTileGridLines = false; - this.MainMap.Size = new System.Drawing.Size(599, 684); - this.MainMap.TabIndex = 0; - this.MainMap.Zoom = 0D; - // - // splitter1 - // - this.splitter1.BackColor = System.Drawing.Color.Transparent; - this.splitter1.Dock = System.Windows.Forms.DockStyle.Right; - this.splitter1.Enabled = false; - this.splitter1.Location = new System.Drawing.Point(597, 0); - this.splitter1.Margin = new System.Windows.Forms.Padding(2); - this.splitter1.MinExtra = 390; - this.splitter1.MinSize = 390; - this.splitter1.Name = "splitter1"; - this.splitter1.Size = new System.Drawing.Size(2, 684); - this.splitter1.TabIndex = 42; - this.splitter1.TabStop = false; - // - // panelMenu - // - this.panelMenu.AssociatedSplitter = this.splitter1; - this.panelMenu.BackColor = System.Drawing.Color.Transparent; - this.panelMenu.CaptionFont = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.panelMenu.CaptionHeight = 27; - this.panelMenu.Controls.Add(this.xPanderPanelList1); - this.panelMenu.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); - this.panelMenu.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; - this.panelMenu.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; - this.panelMenu.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.panelMenu.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; - this.panelMenu.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); - this.panelMenu.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.panelMenu.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.panelMenu.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; - this.panelMenu.CustomColors.CollapsedCaptionText = System.Drawing.SystemColors.ControlText; - this.panelMenu.CustomColors.ContentGradientBegin = System.Drawing.SystemColors.ButtonFace; - this.panelMenu.CustomColors.ContentGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.panelMenu.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; - this.panelMenu.Dock = System.Windows.Forms.DockStyle.Right; - this.panelMenu.ForeColor = System.Drawing.SystemColors.ControlText; - this.panelMenu.Image = null; - this.panelMenu.LinearGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; - this.panelMenu.Location = new System.Drawing.Point(599, 0); - this.panelMenu.Margin = new System.Windows.Forms.Padding(2); - this.panelMenu.MinimumSize = new System.Drawing.Size(27, 27); - this.panelMenu.Name = "panelMenu"; - this.panelMenu.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; - this.panelMenu.ShowExpandIcon = true; - this.panelMenu.Size = new System.Drawing.Size(258, 684); - this.panelMenu.TabIndex = 40; - this.panelMenu.Text = "Menu"; - this.panelMenu.ToolTipTextCloseIcon = null; - this.panelMenu.ToolTipTextExpandIconPanelCollapsed = "maximize"; - this.panelMenu.ToolTipTextExpandIconPanelExpanded = "minimize"; - // - // xPanderPanelList1 - // - this.xPanderPanelList1.CaptionStyle = BSE.Windows.Forms.CaptionStyle.Flat; - this.xPanderPanelList1.Controls.Add(this.xPanderPanelMain); - this.xPanderPanelList1.Controls.Add(this.xPanderPanelInfo); - this.xPanderPanelList1.Controls.Add(this.xPanderPanelCache); - this.xPanderPanelList1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xPanderPanelList1.GradientBackground = System.Drawing.Color.Empty; - this.xPanderPanelList1.Location = new System.Drawing.Point(0, 28); - this.xPanderPanelList1.Margin = new System.Windows.Forms.Padding(2); - this.xPanderPanelList1.Name = "xPanderPanelList1"; - this.xPanderPanelList1.PanelColors = null; - this.xPanderPanelList1.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; - this.xPanderPanelList1.ShowExpandIcon = true; - this.xPanderPanelList1.Size = new System.Drawing.Size(258, 655); - this.xPanderPanelList1.TabIndex = 0; - this.xPanderPanelList1.Text = "xPanderPanelList1"; - // - // xPanderPanelMain - // - this.xPanderPanelMain.CaptionFont = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.xPanderPanelMain.Controls.Add(this.tableLayoutPanel4); - this.xPanderPanelMain.CustomColors.BackColor = System.Drawing.SystemColors.Control; - this.xPanderPanelMain.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); - this.xPanderPanelMain.CustomColors.CaptionCheckedGradientBegin = System.Drawing.Color.Empty; - this.xPanderPanelMain.CustomColors.CaptionCheckedGradientEnd = System.Drawing.Color.Empty; - this.xPanderPanelMain.CustomColors.CaptionCheckedGradientMiddle = System.Drawing.Color.Empty; - this.xPanderPanelMain.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; - this.xPanderPanelMain.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; - this.xPanderPanelMain.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.xPanderPanelMain.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; - this.xPanderPanelMain.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); - this.xPanderPanelMain.CustomColors.CaptionPressedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelMain.CustomColors.CaptionPressedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelMain.CustomColors.CaptionPressedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelMain.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelMain.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelMain.CustomColors.CaptionSelectedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelMain.CustomColors.CaptionSelectedText = System.Drawing.SystemColors.ControlText; - this.xPanderPanelMain.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; - this.xPanderPanelMain.CustomColors.FlatCaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); - this.xPanderPanelMain.CustomColors.FlatCaptionGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.xPanderPanelMain.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; - this.xPanderPanelMain.Expand = true; - this.xPanderPanelMain.ForeColor = System.Drawing.SystemColors.ControlText; - this.xPanderPanelMain.Image = null; - this.xPanderPanelMain.IsClosable = false; - this.xPanderPanelMain.Margin = new System.Windows.Forms.Padding(2); - this.xPanderPanelMain.Name = "xPanderPanelMain"; - this.xPanderPanelMain.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; - this.xPanderPanelMain.Size = new System.Drawing.Size(258, 605); - this.xPanderPanelMain.TabIndex = 0; - this.xPanderPanelMain.Text = "map"; - this.xPanderPanelMain.ToolTipTextCloseIcon = null; - this.xPanderPanelMain.ToolTipTextExpandIconPanelCollapsed = null; - this.xPanderPanelMain.ToolTipTextExpandIconPanelExpanded = null; - this.xPanderPanelMain.Click += new System.EventHandler(this.xPanderPanel1_Click); - // - // tableLayoutPanel4 - // - this.tableLayoutPanel4.ColumnCount = 2; - this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); - this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 49.27536F)); - this.tableLayoutPanel4.Controls.Add(this.tableLayoutPanel5, 1, 0); - this.tableLayoutPanel4.Controls.Add(this.tableLayoutPanel6, 0, 0); - this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel4.Location = new System.Drawing.Point(1, 25); - this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(2); - this.tableLayoutPanel4.Name = "tableLayoutPanel4"; - this.tableLayoutPanel4.RowCount = 1; - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel4.Size = new System.Drawing.Size(256, 580); - this.tableLayoutPanel4.TabIndex = 38; - // - // tableLayoutPanel5 - // - this.tableLayoutPanel5.ColumnCount = 1; - this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel5.Controls.Add(this.gboxRemove, 0, 3); - this.tableLayoutPanel5.Controls.Add(this.gboxMapItems, 0, 2); - this.tableLayoutPanel5.Controls.Add(this.gboxGmap, 0, 1); - this.tableLayoutPanel5.Controls.Add(this.gboxCoordinates, 0, 0); - this.tableLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel5.Location = new System.Drawing.Point(48, 0); - this.tableLayoutPanel5.Margin = new System.Windows.Forms.Padding(0, 0, 2, 2); - this.tableLayoutPanel5.Name = "tableLayoutPanel5"; - this.tableLayoutPanel5.RowCount = 5; - this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 6F)); - this.tableLayoutPanel5.Size = new System.Drawing.Size(206, 578); - this.tableLayoutPanel5.TabIndex = 30; - // - // gboxRemove - // - this.gboxRemove.AutoSize = true; - this.gboxRemove.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.gboxRemove.Controls.Add(this.btnClearAll); - this.gboxRemove.Controls.Add(this.btnClearMarkers); - this.gboxRemove.Controls.Add(this.btnClearRoutes); - this.gboxRemove.Dock = System.Windows.Forms.DockStyle.Fill; - this.gboxRemove.Location = new System.Drawing.Point(3, 495); - this.gboxRemove.Name = "gboxRemove"; - this.gboxRemove.Size = new System.Drawing.Size(200, 91); - this.gboxRemove.TabIndex = 37; - this.gboxRemove.TabStop = false; - this.gboxRemove.Text = "Remove Map Item"; - // - // btnClearAll - // - this.btnClearAll.Location = new System.Drawing.Point(9, 49); - this.btnClearAll.Name = "btnClearAll"; - this.btnClearAll.Size = new System.Drawing.Size(75, 23); - this.btnClearAll.TabIndex = 46; - this.btnClearAll.Text = "Clear All"; - this.btnClearAll.UseVisualStyleBackColor = true; - this.btnClearAll.Click += new System.EventHandler(this.btnClearAll_Click); - // - // btnClearMarkers - // - this.btnClearMarkers.AutoSize = true; - this.btnClearMarkers.Location = new System.Drawing.Point(68, 19); - this.btnClearMarkers.Name = "btnClearMarkers"; - this.btnClearMarkers.Size = new System.Drawing.Size(63, 24); - this.btnClearMarkers.TabIndex = 13; - this.btnClearMarkers.Text = "Markers"; - this.btnClearMarkers.UseVisualStyleBackColor = true; - this.btnClearMarkers.Click += new System.EventHandler(this.btnClearMarkers_Click); - // - // btnClearRoutes - // - this.btnClearRoutes.AutoSize = true; - this.btnClearRoutes.Location = new System.Drawing.Point(9, 19); - this.btnClearRoutes.Name = "btnClearRoutes"; - this.btnClearRoutes.Size = new System.Drawing.Size(55, 24); - this.btnClearRoutes.TabIndex = 34; - this.btnClearRoutes.Text = "Routes"; - this.btnClearRoutes.UseVisualStyleBackColor = true; - this.btnClearRoutes.Click += new System.EventHandler(this.btnClearRoutes_Click); - // - // gboxMapItems - // - this.gboxMapItems.AutoSize = true; - this.gboxMapItems.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.gboxMapItems.Controls.Add(this.buttonExportToGpx); - this.gboxMapItems.Controls.Add(this.xboxPlacemarkInfo); - this.gboxMapItems.Controls.Add(this.MobileLogTo); - this.gboxMapItems.Controls.Add(this.MobileLogFrom); - this.gboxMapItems.Controls.Add(this.btnMobileLog); - this.gboxMapItems.Controls.Add(this.btnAddMarker); - this.gboxMapItems.Controls.Add(this.btnSetEnd); - this.gboxMapItems.Controls.Add(this.btnSetStart); - this.gboxMapItems.Controls.Add(this.btnAddRoute); - this.gboxMapItems.Dock = System.Windows.Forms.DockStyle.Fill; - this.gboxMapItems.Location = new System.Drawing.Point(3, 322); - this.gboxMapItems.Name = "gboxMapItems"; - this.gboxMapItems.Size = new System.Drawing.Size(200, 167); - this.gboxMapItems.TabIndex = 35; - this.gboxMapItems.TabStop = false; - this.gboxMapItems.Text = "Add Map Item"; - // - // buttonExportToGpx - // - this.buttonExportToGpx.Location = new System.Drawing.Point(124, 78); - this.buttonExportToGpx.Margin = new System.Windows.Forms.Padding(2); - this.buttonExportToGpx.Name = "buttonExportToGpx"; - this.buttonExportToGpx.Size = new System.Drawing.Size(37, 37); - this.buttonExportToGpx.TabIndex = 48; - this.buttonExportToGpx.Text = "to GPX"; - this.buttonExportToGpx.UseVisualStyleBackColor = true; - this.buttonExportToGpx.Click += new System.EventHandler(this.buttonExportToGpx_Click); - // - // xboxPlacemarkInfo - // - this.xboxPlacemarkInfo.AutoSize = true; - this.xboxPlacemarkInfo.CheckAlign = System.Drawing.ContentAlignment.TopLeft; - this.xboxPlacemarkInfo.Checked = true; - this.xboxPlacemarkInfo.CheckState = System.Windows.Forms.CheckState.Checked; - this.xboxPlacemarkInfo.Location = new System.Drawing.Point(97, 129); - this.xboxPlacemarkInfo.Name = "xboxPlacemarkInfo"; - this.xboxPlacemarkInfo.Size = new System.Drawing.Size(72, 17); - this.xboxPlacemarkInfo.TabIndex = 14; - this.xboxPlacemarkInfo.Text = "place info"; - this.xboxPlacemarkInfo.UseVisualStyleBackColor = true; - // - // MobileLogTo - // - this.MobileLogTo.CustomFormat = "yyyy\'.\'MM\'.\'dd HH\':\'mm"; - this.MobileLogTo.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.MobileLogTo.Location = new System.Drawing.Point(9, 99); - this.MobileLogTo.Margin = new System.Windows.Forms.Padding(2); - this.MobileLogTo.Name = "MobileLogTo"; - this.MobileLogTo.ShowCheckBox = true; - this.MobileLogTo.Size = new System.Drawing.Size(110, 20); - this.MobileLogTo.TabIndex = 47; - // - // MobileLogFrom - // - this.MobileLogFrom.CustomFormat = "yyyy\'.\'MM\'.\'dd HH\':\'mm"; - this.MobileLogFrom.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.MobileLogFrom.Location = new System.Drawing.Point(9, 78); - this.MobileLogFrom.Margin = new System.Windows.Forms.Padding(2); - this.MobileLogFrom.Name = "MobileLogFrom"; - this.MobileLogFrom.ShowCheckBox = true; - this.MobileLogFrom.Size = new System.Drawing.Size(110, 20); - this.MobileLogFrom.TabIndex = 44; - this.MobileLogFrom.Value = new System.DateTime(2010, 5, 10, 15, 41, 0, 0); - // - // btnMobileLog - // - this.btnMobileLog.Location = new System.Drawing.Point(88, 49); - this.btnMobileLog.Name = "btnMobileLog"; - this.btnMobileLog.Size = new System.Drawing.Size(73, 24); - this.btnMobileLog.TabIndex = 43; - this.btnMobileLog.Text = "Mobile log..."; - this.btnMobileLog.UseVisualStyleBackColor = true; - this.btnMobileLog.Click += new System.EventHandler(this.btnMobileLog_Click); - // - // btnAddMarker - // - this.btnAddMarker.Location = new System.Drawing.Point(9, 124); - this.btnAddMarker.Name = "btnAddMarker"; - this.btnAddMarker.Size = new System.Drawing.Size(82, 24); - this.btnAddMarker.TabIndex = 12; - this.btnAddMarker.Text = "Add Marker"; - this.btnAddMarker.UseVisualStyleBackColor = true; - this.btnAddMarker.Click += new System.EventHandler(this.addUserMarker); - // - // btnSetEnd - // - this.btnSetEnd.Location = new System.Drawing.Point(88, 19); - this.btnSetEnd.Name = "btnSetEnd"; - this.btnSetEnd.Size = new System.Drawing.Size(73, 24); - this.btnSetEnd.TabIndex = 42; - this.btnSetEnd.Text = "set End"; - this.btnSetEnd.UseVisualStyleBackColor = true; - this.btnSetEnd.Click += new System.EventHandler(this.buttonSetEnd_Click); - // - // btnSetStart - // - this.btnSetStart.Location = new System.Drawing.Point(9, 19); - this.btnSetStart.Name = "btnSetStart"; - this.btnSetStart.Size = new System.Drawing.Size(73, 24); - this.btnSetStart.TabIndex = 41; - this.btnSetStart.Text = "set Start"; - this.btnSetStart.UseVisualStyleBackColor = true; - this.btnSetStart.Click += new System.EventHandler(this.buttonSetStart_Click); - // - // btnAddRoute - // - this.btnAddRoute.Location = new System.Drawing.Point(9, 49); - this.btnAddRoute.Name = "btnAddRoute"; - this.btnAddRoute.Size = new System.Drawing.Size(73, 24); - this.btnAddRoute.TabIndex = 33; - this.btnAddRoute.Text = "Add Route"; - this.btnAddRoute.UseVisualStyleBackColor = true; - this.btnAddRoute.Click += new System.EventHandler(this.btnAddRoute_Click); - // - // gboxGmap - // - this.gboxGmap.AutoSize = true; - this.gboxGmap.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.gboxGmap.Controls.Add(this.btnLoadGPX); - this.gboxGmap.Controls.Add(this.btnGetStatic); - this.gboxGmap.Controls.Add(this.xboxGrid); - this.gboxGmap.Controls.Add(this.btnSaveView); - this.gboxGmap.Controls.Add(this.lblMode); - this.gboxGmap.Controls.Add(this.comboBoxMode); - this.gboxGmap.Controls.Add(this.xboxCanDrag); - this.gboxGmap.Controls.Add(this.xboxCurrentMarker); - this.gboxGmap.Controls.Add(this.lblMapType); - this.gboxGmap.Controls.Add(this.comboBoxMapType); - this.gboxGmap.Dock = System.Windows.Forms.DockStyle.Fill; - this.gboxGmap.Location = new System.Drawing.Point(3, 153); - this.gboxGmap.Name = "gboxGmap"; - this.gboxGmap.Size = new System.Drawing.Size(200, 163); - this.gboxGmap.TabIndex = 31; - this.gboxGmap.TabStop = false; - this.gboxGmap.Text = "gmap"; - // - // btnLoadGPX - // - this.btnLoadGPX.Location = new System.Drawing.Point(92, 92); - this.btnLoadGPX.Name = "btnLoadGPX"; - this.btnLoadGPX.Size = new System.Drawing.Size(69, 24); - this.btnLoadGPX.TabIndex = 49; - this.btnLoadGPX.Text = "GPX..."; - this.btnLoadGPX.UseVisualStyleBackColor = true; - this.btnLoadGPX.Click += new System.EventHandler(this.btnLoadGPX_Click); - // - // btnGetStatic - // - this.btnGetStatic.Location = new System.Drawing.Point(9, 121); - this.btnGetStatic.Margin = new System.Windows.Forms.Padding(2); - this.btnGetStatic.Name = "btnGetStatic"; - this.btnGetStatic.Size = new System.Drawing.Size(73, 24); - this.btnGetStatic.TabIndex = 41; - this.btnGetStatic.Text = "Get Static"; - this.btnGetStatic.UseVisualStyleBackColor = true; - this.btnGetStatic.Click += new System.EventHandler(this.btnGetStatic_Click); - // - // xboxGrid - // - this.xboxGrid.AutoSize = true; - this.xboxGrid.Location = new System.Drawing.Point(104, 74); - this.xboxGrid.Margin = new System.Windows.Forms.Padding(2); - this.xboxGrid.Name = "xboxGrid"; - this.xboxGrid.Size = new System.Drawing.Size(45, 17); - this.xboxGrid.TabIndex = 40; - this.xboxGrid.Text = "Grid"; - this.xboxGrid.UseVisualStyleBackColor = true; - this.xboxGrid.CheckedChanged += new System.EventHandler(this.checkBoxDebug_CheckedChanged); - // - // btnSaveView - // - this.btnSaveView.Location = new System.Drawing.Point(92, 121); - this.btnSaveView.Margin = new System.Windows.Forms.Padding(2); - this.btnSaveView.Name = "btnSaveView"; - this.btnSaveView.Size = new System.Drawing.Size(69, 24); - this.btnSaveView.TabIndex = 39; - this.btnSaveView.Text = "Save View"; - this.btnSaveView.UseVisualStyleBackColor = true; - this.btnSaveView.Click += new System.EventHandler(this.btnSaveView_Click); - // - // lblMode - // - this.lblMode.AutoSize = true; - this.lblMode.Location = new System.Drawing.Point(132, 49); - this.lblMode.Name = "lblMode"; - this.lblMode.Size = new System.Drawing.Size(34, 13); - this.lblMode.TabIndex = 38; - this.lblMode.Text = "Mode"; - // - // comboBoxMode - // - this.comboBoxMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBoxMode.FormattingEnabled = true; - this.comboBoxMode.Location = new System.Drawing.Point(8, 46); - this.comboBoxMode.Name = "comboBoxMode"; - this.comboBoxMode.Size = new System.Drawing.Size(123, 21); - this.comboBoxMode.TabIndex = 37; - this.comboBoxMode.DropDownClosed += new System.EventHandler(this.comboBoxMode_DropDownClosed); - // - // xboxCanDrag - // - this.xboxCanDrag.AutoSize = true; - this.xboxCanDrag.Checked = true; - this.xboxCanDrag.CheckState = System.Windows.Forms.CheckState.Checked; - this.xboxCanDrag.Location = new System.Drawing.Point(9, 95); - this.xboxCanDrag.Name = "xboxCanDrag"; - this.xboxCanDrag.Size = new System.Drawing.Size(73, 17); - this.xboxCanDrag.TabIndex = 36; - this.xboxCanDrag.Text = "Drag Map"; - this.xboxCanDrag.UseVisualStyleBackColor = true; - this.xboxCanDrag.CheckedChanged += new System.EventHandler(this.checkBoxCanDrag_CheckedChanged); - // - // xboxCurrentMarker - // - this.xboxCurrentMarker.AutoSize = true; - this.xboxCurrentMarker.Checked = true; - this.xboxCurrentMarker.CheckState = System.Windows.Forms.CheckState.Checked; - this.xboxCurrentMarker.Location = new System.Drawing.Point(9, 73); - this.xboxCurrentMarker.Name = "xboxCurrentMarker"; - this.xboxCurrentMarker.Size = new System.Drawing.Size(96, 17); - this.xboxCurrentMarker.TabIndex = 35; - this.xboxCurrentMarker.Text = "Current Marker"; - this.xboxCurrentMarker.UseVisualStyleBackColor = true; - this.xboxCurrentMarker.CheckedChanged += new System.EventHandler(this.checkBoxCurrentMarker_CheckedChanged); - // - // lblMapType - // - this.lblMapType.AutoSize = true; - this.lblMapType.Location = new System.Drawing.Point(132, 22); - this.lblMapType.Name = "lblMapType"; - this.lblMapType.Size = new System.Drawing.Size(55, 13); - this.lblMapType.TabIndex = 31; - this.lblMapType.Text = "Map Type"; - // - // comboBoxMapType - // - this.comboBoxMapType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBoxMapType.FormattingEnabled = true; - this.comboBoxMapType.Location = new System.Drawing.Point(8, 19); - this.comboBoxMapType.Name = "comboBoxMapType"; - this.comboBoxMapType.Size = new System.Drawing.Size(123, 21); - this.comboBoxMapType.TabIndex = 9; - this.comboBoxMapType.DropDownClosed += new System.EventHandler(this.comboBoxMapType_DropDownClosed); - // - // gboxCoordinates - // - this.gboxCoordinates.AutoSize = true; - this.gboxCoordinates.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.gboxCoordinates.Controls.Add(this.btnZoomCenter); - this.gboxCoordinates.Controls.Add(this.btnReload); - this.gboxCoordinates.Controls.Add(this.btnGoToCoords); - this.gboxCoordinates.Controls.Add(this.lblLng); - this.gboxCoordinates.Controls.Add(this.cboxCollectData); - this.gboxCoordinates.Controls.Add(this.lblLat); - this.gboxCoordinates.Controls.Add(this.textBoxLng); - this.gboxCoordinates.Controls.Add(this.textBoxLat); - this.gboxCoordinates.Dock = System.Windows.Forms.DockStyle.Fill; - this.gboxCoordinates.Location = new System.Drawing.Point(3, 3); - this.gboxCoordinates.Name = "gboxCoordinates"; - this.gboxCoordinates.Size = new System.Drawing.Size(200, 144); - this.gboxCoordinates.TabIndex = 28; - this.gboxCoordinates.TabStop = false; - this.gboxCoordinates.Text = "coordinates"; - // - // btnZoomCenter - // - this.btnZoomCenter.Location = new System.Drawing.Point(84, 71); - this.btnZoomCenter.Name = "btnZoomCenter"; - this.btnZoomCenter.Size = new System.Drawing.Size(82, 24); - this.btnZoomCenter.TabIndex = 15; - this.btnZoomCenter.Text = "Zoom Center"; - this.btnZoomCenter.UseVisualStyleBackColor = true; - this.btnZoomCenter.Click += new System.EventHandler(this.button7_Click); - // - // btnReload - // - this.btnReload.Location = new System.Drawing.Point(6, 101); - this.btnReload.Name = "btnReload"; - this.btnReload.Size = new System.Drawing.Size(74, 24); - this.btnReload.TabIndex = 9; - this.btnReload.Text = "Reload"; - this.btnReload.UseVisualStyleBackColor = true; - this.btnReload.Click += new System.EventHandler(this.btnReload_Click); - // - // btnGoToCoords - // - this.btnGoToCoords.Location = new System.Drawing.Point(6, 71); - this.btnGoToCoords.Name = "btnGoToCoords"; - this.btnGoToCoords.Size = new System.Drawing.Size(72, 24); - this.btnGoToCoords.TabIndex = 8; - this.btnGoToCoords.Text = "GoTo !"; - this.btnGoToCoords.UseVisualStyleBackColor = true; - this.btnGoToCoords.Click += new System.EventHandler(this.btnGoToCoords_Click); - // - // lblLng - // - this.lblLng.AutoSize = true; - this.lblLng.Location = new System.Drawing.Point(135, 48); - this.lblLng.Name = "lblLng"; - this.lblLng.Size = new System.Drawing.Size(54, 13); - this.lblLng.TabIndex = 3; - this.lblLng.Text = "Longitude"; - // - // cboxCollectData - // - this.cboxCollectData.AutoSize = true; - this.cboxCollectData.Location = new System.Drawing.Point(86, 106); - this.cboxCollectData.Name = "cboxCollectData"; - this.cboxCollectData.Size = new System.Drawing.Size(84, 17); - this.cboxCollectData.TabIndex = 38; - this.cboxCollectData.Text = "Collect Data"; - this.cboxCollectData.UseVisualStyleBackColor = true; - // - // lblLat - // - this.lblLat.AutoSize = true; - this.lblLat.Location = new System.Drawing.Point(135, 22); - this.lblLat.Name = "lblLat"; - this.lblLat.Size = new System.Drawing.Size(45, 13); - this.lblLat.TabIndex = 2; - this.lblLat.Text = "Latitude"; - // - // textBoxLng - // - this.textBoxLng.Location = new System.Drawing.Point(9, 45); - this.textBoxLng.Name = "textBoxLng"; - this.textBoxLng.Size = new System.Drawing.Size(122, 20); - this.textBoxLng.TabIndex = 1; - this.textBoxLng.Text = "-83.809848"; - // - // textBoxLat - // - this.textBoxLat.Location = new System.Drawing.Point(9, 19); - this.textBoxLat.Name = "textBoxLat"; - this.textBoxLat.Size = new System.Drawing.Size(122, 20); - this.textBoxLat.TabIndex = 0; - this.textBoxLat.Text = "39.751248"; - // - // tableLayoutPanel6 - // - this.tableLayoutPanel6.ColumnCount = 1; - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel6.Controls.Add(this.btnZoomIn, 0, 0); - this.tableLayoutPanel6.Controls.Add(this.trackBarZoomLevel, 0, 1); - this.tableLayoutPanel6.Controls.Add(this.btnZoomOut, 0, 2); - this.tableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel6.Location = new System.Drawing.Point(2, 2); - this.tableLayoutPanel6.Margin = new System.Windows.Forms.Padding(2); - this.tableLayoutPanel6.Name = "tableLayoutPanel6"; - this.tableLayoutPanel6.RowCount = 3; - this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel6.Size = new System.Drawing.Size(44, 576); - this.tableLayoutPanel6.TabIndex = 31; - // - // btnZoomIn - // - this.btnZoomIn.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnZoomIn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnZoomIn.Location = new System.Drawing.Point(0, 0); - this.btnZoomIn.Margin = new System.Windows.Forms.Padding(0); - this.btnZoomIn.Name = "btnZoomIn"; - this.btnZoomIn.Size = new System.Drawing.Size(45, 27); - this.btnZoomIn.TabIndex = 0; - this.btnZoomIn.Text = "+"; - this.btnZoomIn.UseVisualStyleBackColor = true; - this.btnZoomIn.Click += new System.EventHandler(this.buttonZoomUp_Click); - // - // trackBarZoomLevel - // - this.trackBarZoomLevel.BackColor = System.Drawing.Color.AliceBlue; - this.trackBarZoomLevel.Dock = System.Windows.Forms.DockStyle.Fill; - this.trackBarZoomLevel.LargeChange = 1; - this.trackBarZoomLevel.Location = new System.Drawing.Point(0, 27); - this.trackBarZoomLevel.Margin = new System.Windows.Forms.Padding(0); - this.trackBarZoomLevel.Maximum = 1700; - this.trackBarZoomLevel.Minimum = 1; - this.trackBarZoomLevel.Name = "trackBarZoomLevel"; - this.trackBarZoomLevel.Orientation = System.Windows.Forms.Orientation.Vertical; - this.trackBarZoomLevel.Size = new System.Drawing.Size(45, 522); - this.trackBarZoomLevel.TabIndex = 29; - this.trackBarZoomLevel.TickFrequency = 100; - this.trackBarZoomLevel.TickStyle = System.Windows.Forms.TickStyle.TopLeft; - this.trackBarZoomLevel.Value = 15; - this.trackBarZoomLevel.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); - // - // btnZoomOut - // - this.btnZoomOut.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnZoomOut.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnZoomOut.Location = new System.Drawing.Point(0, 549); - this.btnZoomOut.Margin = new System.Windows.Forms.Padding(0); - this.btnZoomOut.Name = "btnZoomOut"; - this.btnZoomOut.Size = new System.Drawing.Size(45, 27); - this.btnZoomOut.TabIndex = 1; - this.btnZoomOut.Text = "-"; - this.btnZoomOut.UseVisualStyleBackColor = true; - this.btnZoomOut.Click += new System.EventHandler(this.buttonZoomDown_Click); - // - // xPanderPanelInfo - // - this.xPanderPanelInfo.CaptionFont = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.xPanderPanelInfo.Controls.Add(this.tableLayoutPanel2); - this.xPanderPanelInfo.CustomColors.BackColor = System.Drawing.SystemColors.Control; - this.xPanderPanelInfo.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); - this.xPanderPanelInfo.CustomColors.CaptionCheckedGradientBegin = System.Drawing.Color.Empty; - this.xPanderPanelInfo.CustomColors.CaptionCheckedGradientEnd = System.Drawing.Color.Empty; - this.xPanderPanelInfo.CustomColors.CaptionCheckedGradientMiddle = System.Drawing.Color.Empty; - this.xPanderPanelInfo.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; - this.xPanderPanelInfo.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; - this.xPanderPanelInfo.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.xPanderPanelInfo.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; - this.xPanderPanelInfo.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); - this.xPanderPanelInfo.CustomColors.CaptionPressedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelInfo.CustomColors.CaptionPressedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelInfo.CustomColors.CaptionPressedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelInfo.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelInfo.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelInfo.CustomColors.CaptionSelectedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelInfo.CustomColors.CaptionSelectedText = System.Drawing.SystemColors.ControlText; - this.xPanderPanelInfo.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; - this.xPanderPanelInfo.CustomColors.FlatCaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); - this.xPanderPanelInfo.CustomColors.FlatCaptionGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.xPanderPanelInfo.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; - this.xPanderPanelInfo.ForeColor = System.Drawing.SystemColors.ControlText; - this.xPanderPanelInfo.Image = null; - this.xPanderPanelInfo.Margin = new System.Windows.Forms.Padding(2); - this.xPanderPanelInfo.Name = "xPanderPanelInfo"; - this.xPanderPanelInfo.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; - this.xPanderPanelInfo.Size = new System.Drawing.Size(258, 25); - this.xPanderPanelInfo.TabIndex = 3; - this.xPanderPanelInfo.Text = "info"; - this.xPanderPanelInfo.ToolTipTextCloseIcon = null; - this.xPanderPanelInfo.ToolTipTextExpandIconPanelCollapsed = null; - this.xPanderPanelInfo.ToolTipTextExpandIconPanelExpanded = null; - this.xPanderPanelInfo.Click += new System.EventHandler(this.xPanderPanelInfo_Click); - // - // tableLayoutPanel2 - // - this.tableLayoutPanel2.ColumnCount = 3; - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); - this.tableLayoutPanel2.Controls.Add(this.textBoxZoomCurrent, 1, 7); - this.tableLayoutPanel2.Controls.Add(this.textBoxrouteCount, 1, 11); - this.tableLayoutPanel2.Controls.Add(this.label12, 1, 10); - this.tableLayoutPanel2.Controls.Add(this.label9, 1, 6); - this.tableLayoutPanel2.Controls.Add(this.textBoxLngCurrent, 1, 4); - this.tableLayoutPanel2.Controls.Add(this.textBoxMarkerCount, 1, 9); - this.tableLayoutPanel2.Controls.Add(this.label11, 1, 8); - this.tableLayoutPanel2.Controls.Add(this.label4, 1, 3); - this.tableLayoutPanel2.Controls.Add(this.textBoxLatCurrent, 1, 2); - this.tableLayoutPanel2.Controls.Add(this.label5, 1, 1); - this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel2.Location = new System.Drawing.Point(1, 25); - this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(2); - this.tableLayoutPanel2.Name = "tableLayoutPanel2"; - this.tableLayoutPanel2.RowCount = 13; - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel2.Size = new System.Drawing.Size(256, 0); - this.tableLayoutPanel2.TabIndex = 14; - // - // textBoxZoomCurrent - // - this.textBoxZoomCurrent.Dock = System.Windows.Forms.DockStyle.Fill; - this.textBoxZoomCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxZoomCurrent.Location = new System.Drawing.Point(18, 142); - this.textBoxZoomCurrent.Name = "textBoxZoomCurrent"; - this.textBoxZoomCurrent.ReadOnly = true; - this.textBoxZoomCurrent.Size = new System.Drawing.Size(220, 28); - this.textBoxZoomCurrent.TabIndex = 8; - this.textBoxZoomCurrent.Text = "15"; - // - // textBoxrouteCount - // - this.textBoxrouteCount.Dock = System.Windows.Forms.DockStyle.Fill; - this.textBoxrouteCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxrouteCount.Location = new System.Drawing.Point(18, 236); - this.textBoxrouteCount.Name = "textBoxrouteCount"; - this.textBoxrouteCount.ReadOnly = true; - this.textBoxrouteCount.Size = new System.Drawing.Size(220, 28); - this.textBoxrouteCount.TabIndex = 12; - this.textBoxrouteCount.Text = "..."; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(18, 220); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(39, 13); - this.label12.TabIndex = 13; - this.label12.Text = "routes:"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(18, 126); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(35, 13); - this.label9.TabIndex = 9; - this.label9.Text = "zoom:"; - // - // textBoxLngCurrent - // - this.textBoxLngCurrent.Dock = System.Windows.Forms.DockStyle.Fill; - this.textBoxLngCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxLngCurrent.Location = new System.Drawing.Point(18, 79); - this.textBoxLngCurrent.Name = "textBoxLngCurrent"; - this.textBoxLngCurrent.ReadOnly = true; - this.textBoxLngCurrent.Size = new System.Drawing.Size(220, 28); - this.textBoxLngCurrent.TabIndex = 5; - this.textBoxLngCurrent.Text = "..."; - // - // textBoxMarkerCount - // - this.textBoxMarkerCount.Dock = System.Windows.Forms.DockStyle.Fill; - this.textBoxMarkerCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxMarkerCount.Location = new System.Drawing.Point(18, 189); - this.textBoxMarkerCount.Name = "textBoxMarkerCount"; - this.textBoxMarkerCount.ReadOnly = true; - this.textBoxMarkerCount.Size = new System.Drawing.Size(220, 28); - this.textBoxMarkerCount.TabIndex = 10; - this.textBoxMarkerCount.Text = "..."; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(18, 173); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(47, 13); - this.label11.TabIndex = 11; - this.label11.Text = "markers:"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(18, 63); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(24, 13); - this.label4.TabIndex = 7; - this.label4.Text = "lng:"; - // - // textBoxLatCurrent - // - this.textBoxLatCurrent.Dock = System.Windows.Forms.DockStyle.Fill; - this.textBoxLatCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxLatCurrent.Location = new System.Drawing.Point(18, 32); - this.textBoxLatCurrent.Name = "textBoxLatCurrent"; - this.textBoxLatCurrent.ReadOnly = true; - this.textBoxLatCurrent.Size = new System.Drawing.Size(220, 28); - this.textBoxLatCurrent.TabIndex = 4; - this.textBoxLatCurrent.Text = "..."; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(18, 16); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(21, 13); - this.label5.TabIndex = 6; - this.label5.Text = "lat:"; - // - // xPanderPanelCache - // - this.xPanderPanelCache.CaptionFont = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.xPanderPanelCache.Controls.Add(this.tableLayoutPanel1); - this.xPanderPanelCache.CustomColors.BackColor = System.Drawing.SystemColors.Control; - this.xPanderPanelCache.CustomColors.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(184)))), ((int)(((byte)(184)))), ((int)(((byte)(184))))); - this.xPanderPanelCache.CustomColors.CaptionCheckedGradientBegin = System.Drawing.Color.Empty; - this.xPanderPanelCache.CustomColors.CaptionCheckedGradientEnd = System.Drawing.Color.Empty; - this.xPanderPanelCache.CustomColors.CaptionCheckedGradientMiddle = System.Drawing.Color.Empty; - this.xPanderPanelCache.CustomColors.CaptionCloseIcon = System.Drawing.SystemColors.ControlText; - this.xPanderPanelCache.CustomColors.CaptionExpandIcon = System.Drawing.SystemColors.ControlText; - this.xPanderPanelCache.CustomColors.CaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.xPanderPanelCache.CustomColors.CaptionGradientEnd = System.Drawing.SystemColors.ButtonFace; - this.xPanderPanelCache.CustomColors.CaptionGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); - this.xPanderPanelCache.CustomColors.CaptionPressedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelCache.CustomColors.CaptionPressedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelCache.CustomColors.CaptionPressedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelCache.CustomColors.CaptionSelectedGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelCache.CustomColors.CaptionSelectedGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelCache.CustomColors.CaptionSelectedGradientMiddle = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.xPanderPanelCache.CustomColors.CaptionSelectedText = System.Drawing.SystemColors.ControlText; - this.xPanderPanelCache.CustomColors.CaptionText = System.Drawing.SystemColors.ControlText; - this.xPanderPanelCache.CustomColors.FlatCaptionGradientBegin = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); - this.xPanderPanelCache.CustomColors.FlatCaptionGradientEnd = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252))))); - this.xPanderPanelCache.CustomColors.InnerBorderColor = System.Drawing.SystemColors.Window; - this.xPanderPanelCache.ForeColor = System.Drawing.SystemColors.ControlText; - this.xPanderPanelCache.Image = null; - this.xPanderPanelCache.IsClosable = false; - this.xPanderPanelCache.Margin = new System.Windows.Forms.Padding(2); - this.xPanderPanelCache.Name = "xPanderPanelCache"; - this.xPanderPanelCache.PanelStyle = BSE.Windows.Forms.PanelStyle.Office2007; - this.xPanderPanelCache.Size = new System.Drawing.Size(258, 25); - this.xPanderPanelCache.TabIndex = 4; - this.xPanderPanelCache.Text = "cache"; - this.xPanderPanelCache.ToolTipTextCloseIcon = null; - this.xPanderPanelCache.ToolTipTextExpandIconPanelCollapsed = null; - this.xPanderPanelCache.ToolTipTextExpandIconPanelExpanded = null; - // - // tableLayoutPanel1 - // - this.tableLayoutPanel1.ColumnCount = 3; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); - this.tableLayoutPanel1.Controls.Add(this.textBoxCacheSize, 1, 12); - this.tableLayoutPanel1.Controls.Add(this.textBoxCacheStatus, 1, 15); - this.tableLayoutPanel1.Controls.Add(this.button10, 1, 1); - this.tableLayoutPanel1.Controls.Add(this.textBoxMemory, 1, 9); - this.tableLayoutPanel1.Controls.Add(this.checkBoxUseRouteCache, 1, 17); - this.tableLayoutPanel1.Controls.Add(this.button9, 1, 2); - this.tableLayoutPanel1.Controls.Add(this.button11, 1, 3); - this.tableLayoutPanel1.Controls.Add(this.label10, 1, 8); - this.tableLayoutPanel1.Controls.Add(this.button2, 1, 5); - this.tableLayoutPanel1.Controls.Add(this.label13, 1, 14); - this.tableLayoutPanel1.Controls.Add(this.label14, 1, 11); - this.tableLayoutPanel1.Controls.Add(this.button17, 1, 6); - this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel1.Location = new System.Drawing.Point(1, 25); - this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2); - this.tableLayoutPanel1.Name = "tableLayoutPanel1"; - this.tableLayoutPanel1.RowCount = 19; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(256, 0); - this.tableLayoutPanel1.TabIndex = 41; - // - // textBoxCacheSize - // - this.textBoxCacheSize.Dock = System.Windows.Forms.DockStyle.Top; - this.textBoxCacheSize.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxCacheSize.Location = new System.Drawing.Point(18, 238); - this.textBoxCacheSize.Name = "textBoxCacheSize"; - this.textBoxCacheSize.ReadOnly = true; - this.textBoxCacheSize.Size = new System.Drawing.Size(220, 28); - this.textBoxCacheSize.TabIndex = 49; - this.textBoxCacheSize.Text = "..."; - // - // textBoxCacheStatus - // - this.textBoxCacheStatus.Dock = System.Windows.Forms.DockStyle.Top; - this.textBoxCacheStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxCacheStatus.Location = new System.Drawing.Point(18, 301); - this.textBoxCacheStatus.Name = "textBoxCacheStatus"; - this.textBoxCacheStatus.ReadOnly = true; - this.textBoxCacheStatus.Size = new System.Drawing.Size(220, 28); - this.textBoxCacheStatus.TabIndex = 46; - this.textBoxCacheStatus.Text = "..."; - // - // button10 - // - this.button10.Dock = System.Windows.Forms.DockStyle.Fill; - this.button10.Location = new System.Drawing.Point(18, 19); - this.button10.Name = "button10"; - this.button10.Size = new System.Drawing.Size(220, 20); - this.button10.TabIndex = 5; - this.button10.Text = "Import"; - this.button10.UseVisualStyleBackColor = true; - // - // textBoxMemory - // - this.textBoxMemory.Dock = System.Windows.Forms.DockStyle.Top; - this.textBoxMemory.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxMemory.Location = new System.Drawing.Point(18, 175); - this.textBoxMemory.Name = "textBoxMemory"; - this.textBoxMemory.ReadOnly = true; - this.textBoxMemory.Size = new System.Drawing.Size(220, 28); - this.textBoxMemory.TabIndex = 39; - this.textBoxMemory.Text = "..."; - // - // checkBoxUseRouteCache - // - this.checkBoxUseRouteCache.AutoSize = true; - this.checkBoxUseRouteCache.Checked = true; - this.checkBoxUseRouteCache.CheckState = System.Windows.Forms.CheckState.Checked; - this.checkBoxUseRouteCache.Location = new System.Drawing.Point(18, 351); - this.checkBoxUseRouteCache.Name = "checkBoxUseRouteCache"; - this.checkBoxUseRouteCache.Size = new System.Drawing.Size(160, 17); - this.checkBoxUseRouteCache.TabIndex = 2; - this.checkBoxUseRouteCache.Text = "cache routing/geocodig/etc"; - this.checkBoxUseRouteCache.UseVisualStyleBackColor = true; - // - // button9 - // - this.button9.Dock = System.Windows.Forms.DockStyle.Fill; - this.button9.Location = new System.Drawing.Point(18, 45); - this.button9.Name = "button9"; - this.button9.Size = new System.Drawing.Size(220, 20); - this.button9.TabIndex = 4; - this.button9.Text = "Export"; - this.button9.UseVisualStyleBackColor = true; - // - // button11 - // - this.button11.Dock = System.Windows.Forms.DockStyle.Fill; - this.button11.Location = new System.Drawing.Point(18, 71); - this.button11.Name = "button11"; - this.button11.Size = new System.Drawing.Size(220, 20); - this.button11.TabIndex = 38; - this.button11.Text = "Prefetch selected area"; - this.button11.UseVisualStyleBackColor = true; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(18, 159); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(111, 13); - this.label10.TabIndex = 40; - this.label10.Text = "memory cache usage:"; - // - // button2 - // - this.button2.Dock = System.Windows.Forms.DockStyle.Fill; - this.button2.Location = new System.Drawing.Point(18, 97); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(220, 20); - this.button2.TabIndex = 43; - this.button2.Text = "Clear tiles in disk cache"; - this.button2.UseVisualStyleBackColor = true; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(18, 285); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(93, 13); - this.label13.TabIndex = 44; - this.label13.Text = "disk cache status:"; - // - // label14 - // - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(18, 222); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(83, 13); - this.label14.TabIndex = 47; - this.label14.Text = "disk cache size:"; - // - // button17 - // - this.button17.Dock = System.Windows.Forms.DockStyle.Fill; - this.button17.Location = new System.Drawing.Point(17, 122); - this.button17.Margin = new System.Windows.Forms.Padding(2); - this.button17.Name = "button17"; - this.button17.Size = new System.Drawing.Size(222, 19); - this.button17.TabIndex = 50; - this.button17.Text = "Open cache location"; - this.button17.UseVisualStyleBackColor = true; - // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -2061,6 +1989,28 @@ this.tabMap.ResumeLayout(false); this.panel4.ResumeLayout(false); this.panel2.ResumeLayout(false); + this.panelMenu.ResumeLayout(false); + this.xPanderPanelList1.ResumeLayout(false); + this.xPanderPanelMain.ResumeLayout(false); + this.tableLayoutPanel4.ResumeLayout(false); + this.tableLayoutPanel5.ResumeLayout(false); + this.tableLayoutPanel5.PerformLayout(); + this.gboxRemove.ResumeLayout(false); + this.gboxRemove.PerformLayout(); + this.gboxMapItems.ResumeLayout(false); + this.gboxGmap.ResumeLayout(false); + this.gboxGmap.PerformLayout(); + this.gboxCoordinates.ResumeLayout(false); + this.gboxCoordinates.PerformLayout(); + this.tableLayoutPanel6.ResumeLayout(false); + this.tableLayoutPanel6.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarZoomLevel)).EndInit(); + this.xPanderPanelInfo.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + this.tableLayoutPanel2.PerformLayout(); + this.xPanderPanelCache.ResumeLayout(false); + this.tableLayoutPanel1.ResumeLayout(false); + this.tableLayoutPanel1.PerformLayout(); this.tabControl.ResumeLayout(false); this.tabGraphs.ResumeLayout(false); this.pnlDataListDisplay.ResumeLayout(false); @@ -2091,29 +2041,6 @@ this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.PerformLayout(); this.splitContainer1.ResumeLayout(false); - this.panelMenu.ResumeLayout(false); - this.xPanderPanelList1.ResumeLayout(false); - this.xPanderPanelMain.ResumeLayout(false); - this.tableLayoutPanel4.ResumeLayout(false); - this.tableLayoutPanel5.ResumeLayout(false); - this.tableLayoutPanel5.PerformLayout(); - this.gboxRemove.ResumeLayout(false); - this.gboxRemove.PerformLayout(); - this.gboxMapItems.ResumeLayout(false); - this.gboxMapItems.PerformLayout(); - this.gboxGmap.ResumeLayout(false); - this.gboxGmap.PerformLayout(); - this.gboxCoordinates.ResumeLayout(false); - this.gboxCoordinates.PerformLayout(); - this.tableLayoutPanel6.ResumeLayout(false); - this.tableLayoutPanel6.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarZoomLevel)).EndInit(); - this.xPanderPanelInfo.ResumeLayout(false); - this.tableLayoutPanel2.ResumeLayout(false); - this.tableLayoutPanel2.PerformLayout(); - this.xPanderPanelCache.ResumeLayout(false); - this.tableLayoutPanel1.ResumeLayout(false); - this.tableLayoutPanel1.PerformLayout(); this.ResumeLayout(false); } @@ -2132,20 +2059,14 @@ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5; private System.Windows.Forms.GroupBox gboxRemove; private System.Windows.Forms.Button btnZoomCenter; - private System.Windows.Forms.CheckBox xboxPlacemarkInfo; private System.Windows.Forms.Button btnClearMarkers; private System.Windows.Forms.Button btnAddMarker; private System.Windows.Forms.GroupBox gboxMapItems; - private System.Windows.Forms.Button buttonExportToGpx; - private System.Windows.Forms.DateTimePicker MobileLogTo; - private System.Windows.Forms.DateTimePicker MobileLogFrom; - private System.Windows.Forms.Button btnMobileLog; private System.Windows.Forms.Button btnSetEnd; private System.Windows.Forms.Button btnSetStart; private System.Windows.Forms.Button btnClearRoutes; private System.Windows.Forms.Button btnAddRoute; private System.Windows.Forms.GroupBox gboxGmap; - private System.Windows.Forms.Button btnLoadGPX; private System.Windows.Forms.Button btnGetStatic; private System.Windows.Forms.CheckBox xboxGrid; private System.Windows.Forms.Button btnSaveView; @@ -2182,16 +2103,16 @@ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.TextBox textBoxCacheSize; private System.Windows.Forms.TextBox textBoxCacheStatus; - private System.Windows.Forms.Button button10; + private System.Windows.Forms.Button btnCacheImport; private System.Windows.Forms.TextBox textBoxMemory; private System.Windows.Forms.CheckBox checkBoxUseRouteCache; - private System.Windows.Forms.Button button9; - private System.Windows.Forms.Button button11; + private System.Windows.Forms.Button btnCacheExport; + private System.Windows.Forms.Button btnCachePrefetch; private System.Windows.Forms.Label label10; - private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button btnCacheClear; private System.Windows.Forms.Label label13; private System.Windows.Forms.Label label14; - private System.Windows.Forms.Button button17; + private System.Windows.Forms.Button btnCacheLocationOpen; private System.Windows.Forms.TabControl tabControl; private System.Windows.Forms.TabPage tabGraphs; private System.Windows.Forms.Panel pnlDataListDisplay; diff --git a/Demo.WindowsForms/Forms/MainForm.cs b/Demo.WindowsForms/Forms/MainForm.cs --- a/Demo.WindowsForms/Forms/MainForm.cs +++ b/Demo.WindowsForms/Forms/MainForm.cs @@ -20,7 +20,6 @@ using GMap.NET.WindowsForms.ToolTips; using System.IO.Ports; using System.Data; using System.Text; -//using System.Linq; namespace Demo.WindowsForms { @@ -30,14 +29,10 @@ namespace Demo.WindowsForms readonly GMapOverlay top = new GMapOverlay(); internal readonly GMapOverlay objects = new GMapOverlay("objects"); internal readonly GMapOverlay routes = new GMapOverlay("routes"); - //internal readonly GMapOverlay polygons = new GMapOverlay("polygons"); - // marker + // current marker GMarkerGoogle currentMarker; - // polygons - //GMapPolygon polygon; - // etc readonly Random rnd = new Random(); readonly DescendingComparer ComparerIpStatus = new DescendingComparer(); @@ -47,6 +42,8 @@ namespace Demo.WindowsForms PointLatLng start; PointLatLng end; TimeSpan unixTime; + GMapRoute currentRoute = null; + bool UserAcceptedLicenseOnce = false; public MainForm() { @@ -82,7 +79,7 @@ namespace Demo.WindowsForms // map events { - MainMap.OnPositionChanged += new PositionChanged(MainMap_OnPositionChanged); + //MainMap.OnPositionChanged += new PositionChanged(MainMap_OnPositionChanged); MainMap.OnTileLoadStart += new TileLoadStart(MainMap_OnTileLoadStart); MainMap.OnTileLoadComplete += new TileLoadComplete(MainMap_OnTileLoadComplete); @@ -94,8 +91,8 @@ namespace Demo.WindowsForms MainMap.OnMarkerEnter += new MarkerEnter(MainMap_OnMarkerEnter); MainMap.OnMarkerLeave += new MarkerLeave(MainMap_OnMarkerLeave); - MainMap.OnPolygonEnter += new PolygonEnter(MainMap_OnPolygonEnter); - MainMap.OnPolygonLeave += new PolygonLeave(MainMap_OnPolygonLeave); + //MainMap.OnPolygonEnter += new PolygonEnter(MainMap_OnPolygonEnter); + //MainMap.OnPolygonLeave += new PolygonLeave(MainMap_OnPolygonLeave); MainMap.OnRouteEnter += new RouteEnter(MainMap_OnRouteEnter); MainMap.OnRouteLeave += new RouteLeave(MainMap_OnRouteLeave); @@ -108,7 +105,7 @@ namespace Demo.WindowsForms MainMap.MouseMove += new MouseEventHandler(MainMap_MouseMove); MainMap.MouseDown += new MouseEventHandler(MainMap_MouseDown); MainMap.MouseUp += new MouseEventHandler(MainMap_MouseUp); - MainMap.MouseDoubleClick += new MouseEventHandler(MainMap_MouseDoubleClick); + //MainMap.MouseDoubleClick += new MouseEventHandler(MainMap_MouseDoubleClick); // get map types #if !MONO // mono doesn't handle it, so we 'lost' provider list ;] @@ -127,9 +124,6 @@ namespace Demo.WindowsForms // get cache modes checkBoxUseRouteCache.Checked = MainMap.Manager.UseRouteCache; - MobileLogFrom.Value = DateTime.Today; - MobileLogTo.Value = DateTime.Now; - // get zoom trackBarZoomLevel.Minimum = MainMap.MinZoom * 100; trackBarZoomLevel.Maximum = MainMap.MaxZoom * 100; @@ -141,49 +135,9 @@ namespace Demo.WindowsForms ToolStripManager.Renderer = new BSE.Windows.Forms.Office2007Renderer(); - #region -- demo workers -- - //// flight demo - //{ - // flightWorker.DoWork += new DoWorkEventHandler(flight_DoWork); - // flightWorker.ProgressChanged += new ProgressChangedEventHandler(flight_ProgressChanged); - // flightWorker.WorkerSupportsCancellation = true; - // flightWorker.WorkerReportsProgress = true; - //} - - //// vehicle demo - //{ - // transportWorker.DoWork += new DoWorkEventHandler(transport_DoWork); - // transportWorker.ProgressChanged += new ProgressChangedEventHandler(transport_ProgressChanged); - // transportWorker.WorkerSupportsCancellation = true; - // transportWorker.WorkerReportsProgress = true; - //} - - // Connections - //{ - // connectionsWorker.DoWork += new DoWorkEventHandler(connectionsWorker_DoWork); - // connectionsWorker.ProgressChanged += new ProgressChangedEventHandler(connectionsWorker_ProgressChanged); - // connectionsWorker.WorkerSupportsCancellation = true; - // connectionsWorker.WorkerReportsProgress = true; - - // ipInfoSearchWorker.DoWork += new DoWorkEventHandler(ipInfoSearchWorker_DoWork); - // ipInfoSearchWorker.WorkerSupportsCancellation = true; - - // iptracerWorker.DoWork += new DoWorkEventHandler(iptracerWorker_DoWork); - // iptracerWorker.WorkerSupportsCancellation = true; - - // //GridConnections.AutoGenerateColumns = false; - - // IpCache.CacheLocation = MainMap.CacheLocation; - //} - - // perf - timerPerf.Tick += new EventHandler(timer_Tick); - #endregion - // add custom layers { MainMap.Overlays.Add(routes); - //MainMap.Overlays.Add(polygons); MainMap.Overlays.Add(objects); MainMap.Overlays.Add(top); @@ -197,64 +151,34 @@ namespace Demo.WindowsForms currentMarker.ToolTipText = "Current Marker"; top.Markers.Add(currentMarker); - //MainMap.VirtualSizeEnabled = true; - //if(false) + if (objects.Markers.Count > 0) { - // add my city location for demo - //GeoCoderStatusCode status = GeoCoderStatusCode.Unknow; - { - //PointLatLng? pos = GMapProviders.GoogleMap.GetPoint("Lithuania, Vilnius", out status); - //if (pos != null && status == GeoCoderStatusCode.G_GEO_SUCCESS) - //{ - // currentMarker.Position = pos.Value; - - // // - MDKEdit - // //GMapMarker myCity = new GMarkerGoogle(pos.Value, GMarkerGoogleType.green_small); - // //myCity.ToolTipMode = MarkerTooltipMode.Always; - // //myCity.ToolTipText = "Welcome to Lithuania! ;}"; - // //objects.Markers.Add(myCity); - //} - } + MainMap.ZoomAndCenterMarkers(null); + } - // add some points in lithuania - MDKEdit - //AddLocationLithuania("Kaunas"); - //AddLocationLithuania("Klaipėda"); - //AddLocationLithuania("Šiauliai"); - //AddLocationLithuania("Panevėžys"); - - if (objects.Markers.Count > 0) - { - MainMap.ZoomAndCenterMarkers(null); - } - - //RegeneratePolygon(); + try + { + GMapOverlay overlay = DeepClone(objects); + Debug.WriteLine("ISerializable status for markers: OK"); - try - { - GMapOverlay overlay = DeepClone(objects); - Debug.WriteLine("ISerializable status for markers: OK"); - - //GMapOverlay overlay2 = DeepClone(polygons); - //Debug.WriteLine("ISerializable status for polygons: OK"); - - GMapOverlay overlay3 = DeepClone(routes); - Debug.WriteLine("ISerializable status for routes: OK"); - } - catch (Exception ex) - { - Debug.WriteLine("ISerializable failure: " + ex.Message); + GMapOverlay overlay3 = DeepClone(routes); + Debug.WriteLine("ISerializable status for routes: OK"); + } + catch (Exception ex) + { + Debug.WriteLine("ISerializable failure: " + ex.Message); #if DEBUG - if (Debugger.IsAttached) - { - Debugger.Break(); - } + if (Debugger.IsAttached) + { + Debugger.Break(); + } #endif - } } } } + //runs during init - MDKfunctional public T DeepClone(T obj) { using (var ms = new System.IO.MemoryStream()) @@ -269,1089 +193,32 @@ namespace Demo.WindowsForms } } + // runs on form load - MDKfunctional + private void MainForm_Load(object sender, EventArgs e) + { + trackBarZoomLevel.Value = (int)MainMap.Zoom * 100; + Activate(); + TopMost = true; + TopMost = false; + + PrepareGraphs(); + } + + //updates the count of markers - MDKfunctional void Markers_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e) { //textBoxMarkerCount.Text = objects.Markers.Count.ToString(); } + //updates the count of routes - MDKfunctional void Routes_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e) { textBoxrouteCount.Text = routes.Routes.Count.ToString(); } - #region -- performance test -- - - double NextDouble(Random rng, double min, double max) - { - return min + (rng.NextDouble() * (max - min)); - } - - int tt = 0; - void timer_Tick(object sender, EventArgs e) - { - - } - - System.Windows.Forms.Timer timerPerf = new System.Windows.Forms.Timer(); - #endregion - - //#region -- flight demo -- - //BackgroundWorker flightWorker = new BackgroundWorker(); - - //readonly List flights = new List(); - //readonly Dictionary flightMarkers = new Dictionary(); - - //bool firstLoadFlight = true; - //GMapMarker currentFlight; - - //void flight_ProgressChanged(object sender, ProgressChangedEventArgs e) - //{ - // // stops immediate marker/route/polygon invalidations; - // // call Refresh to perform single refresh and reset invalidation state - // MainMap.HoldInvalidation = true; - - // lock (flights) - // { - // foreach (FlightRadarData d in flights) - // { - // GMapMarker marker; - - // if (!flightMarkers.TryGetValue(d.Id, out marker)) - // { - // marker = new GMarkerGoogle(d.point, GMarkerGoogleType.blue_small); - // marker.Tag = d.Id; - // marker.ToolTipMode = MarkerTooltipMode.OnMouseOver; - // //(marker as GMapMarkerGoogleGreen).Bearing = (float?)d.bearing; - - // flightMarkers[d.Id] = marker; - // objects.Markers.Add(marker); - // } - // else - // { - // marker.Position = d.point; - // //(marker as GMapMarkerGoogleGreen).Bearing = (float?)d.bearing; - // } - // marker.ToolTipText = d.name + ", " + d.altitude + ", " + d.speed; - - // if (currentFlight != null && currentFlight == marker) - // { - // MainMap.Position = marker.Position; - // //MainMap.Bearing = (float)d.bearing; - // } - // } - // } - - // if (firstLoadFlight) - // { - // MainMap.Zoom = 5; - // MainMap.SetZoomToFitRect(new RectLatLng(54.4955675218741, -0.966796875, 28.916015625, 13.3830987326932)); - // firstLoadFlight = false; - // } - // MainMap.Refresh(); - //} - - //void flight_DoWork(object sender, DoWorkEventArgs e) - //{ - // bool restartSesion = true; - - // while (!flightWorker.CancellationPending) - // { - // try - // { - // lock (flights) - // { - // Stuff.GetFlightRadarData(flights, lastPosition, lastZoom, restartSesion); - - // if (flights.Count > 0 && restartSesion) - // { - // restartSesion = false; - // } - // } - - // flightWorker.ReportProgress(100); - // } - // catch (Exception ex) - // { - // Debug.WriteLine("flight_DoWork: " + ex.ToString()); - // } - // Thread.Sleep(5 * 1000); - // } - - // flightMarkers.Clear(); - //} - - //#endregion - /// - //#region -- transport demo -- - //BackgroundWorker transportWorker = new BackgroundWorker(); - - //#region -- old vehicle demo -- - //readonly List trolleybus = new List(); - //readonly Dictionary trolleybusMarkers = new Dictionary(); - - //readonly List bus = new List(); - //readonly Dictionary busMarkers = new Dictionary(); - //#endregion - - //bool firstLoadTrasport = true; - //GMapMarker currentTransport; - - //void transport_ProgressChanged(object sender, ProgressChangedEventArgs e) - //{ - // // stops immediate marker/route/polygon invalidations; - // // call Refresh to perform single refresh and reset invalidation state - // MainMap.HoldInvalidation = true; - - // #region -- vehicle demo -- - // lock (trolleybus) - // { - // foreach (VehicleData d in trolleybus) - // { - // GMapMarker marker; - - // if (!trolleybusMarkers.TryGetValue(d.Id, out marker)) - // { - // marker = new GMarkerGoogle(new PointLatLng(d.Lat, d.Lng), GMarkerGoogleType.red_small); - // marker.Tag = d.Id; - // marker.ToolTipMode = MarkerTooltipMode.OnMouseOver; - - // trolleybusMarkers[d.Id] = marker; - // objects.Markers.Add(marker); - // } - // else - // { - // marker.Position = new PointLatLng(d.Lat, d.Lng); - // (marker as GMarkerGoogle).Bearing = (float?)d.Bearing; - // } - // marker.ToolTipText = "Trolley " + d.Line + (d.Bearing.HasValue ? ", bearing: " + d.Bearing.Value.ToString() : string.Empty) + ", " + d.Time; - - // if (currentTransport != null && currentTransport == marker) - // { - // MainMap.Position = marker.Position; - // if (d.Bearing.HasValue) - // { - // MainMap.Bearing = (float)d.Bearing.Value; - // } - // } - // } - // } - - // lock (bus) - // { - // foreach (VehicleData d in bus) - // { - // GMapMarker marker; - - // if (!busMarkers.TryGetValue(d.Id, out marker)) - // { - // marker = new GMarkerGoogle(new PointLatLng(d.Lat, d.Lng), GMarkerGoogleType.green_small); - // marker.Tag = d.Id; - // marker.ToolTipMode = MarkerTooltipMode.OnMouseOver; - - // busMarkers[d.Id] = marker; - // objects.Markers.Add(marker); - // } - // else - // { - // marker.Position = new PointLatLng(d.Lat, d.Lng); - // (marker as GMarkerGoogle).Bearing = (float?)d.Bearing; - // } - // marker.ToolTipText = "Bus " + d.Line + (d.Bearing.HasValue ? ", bearing: " + d.Bearing.Value.ToString() : string.Empty) + ", " + d.Time; - - // if (currentTransport != null && currentTransport == marker) - // { - // MainMap.Position = marker.Position; - // if (d.Bearing.HasValue) - // { - // MainMap.Bearing = (float)d.Bearing.Value; - // } - // } - // } - // } - // #endregion - - // if (firstLoadTrasport) - // { - // MainMap.Zoom = 5; - // MainMap.ZoomAndCenterMarkers("objects"); - // firstLoadTrasport = false; - // } - // MainMap.Refresh(); - //} - - //void transport_DoWork(object sender, DoWorkEventArgs e) - //{ - // while (!transportWorker.CancellationPending) - // { - // try - // { - // #region -- old vehicle demo -- - // lock (trolleybus) - // { - // Stuff.GetVilniusTransportData(TransportType.TrolleyBus, string.Empty, trolleybus); - // } - - // lock (bus) - // { - // Stuff.GetVilniusTransportData(TransportType.Bus, string.Empty, bus); - // } - // #endregion - - // transportWorker.ReportProgress(100); - // } - // catch (Exception ex) - // { - // Debug.WriteLine("transport_DoWork: " + ex.ToString()); - // } - // Thread.Sleep(2 * 1000); - // } - - // trolleybusMarkers.Clear(); - // busMarkers.Clear(); - //} - - //#endregion - /// - //#region -- tcp/ip connections demo -- - // BackgroundWorker connectionsWorker = new BackgroundWorker(); - // BackgroundWorker ipInfoSearchWorker = new BackgroundWorker(); - // BackgroundWorker iptracerWorker = new BackgroundWorker(); - - // readonly Dictionary TcpState = new Dictionary(); - // readonly Dictionary TcpTracePoints = new Dictionary(); - // readonly Dictionary> TraceRoutes = new Dictionary>(); - - // readonly List TcpStateNeedLocationInfo = new List(); - // readonly Queue TcpStateNeedtraceInfo = new Queue(); - - // volatile bool TryTraceConnection = false; - // GMapMarker lastTcpmarker; - // readonly SQLiteIpCache IpCache = new SQLiteIpCache(); - - // readonly Dictionary tcpConnections = new Dictionary(); - // readonly Dictionary tcpRoutes = new Dictionary(); - - // readonly List CountryStatusView = new List(); - // readonly SortedDictionary CountryStatus = new SortedDictionary(); - - // readonly List SelectedCountries = new List(); - // readonly Dictionary ProcessList = new Dictionary(); - - // void ipInfoSearchWorker_DoWork(object sender, DoWorkEventArgs e) - // { - // while (!ipInfoSearchWorker.CancellationPending) - // { - // try - // { - // string iplist = string.Empty; - - // lock (TcpStateNeedLocationInfo) - // { - // //int count = 0; - // foreach (var info in TcpStateNeedLocationInfo) - // { - // if (iplist.Length > 0) - // { - // iplist += ","; - // } - // iplist += info; - - // //if(count++ >= 1) - // { - // break; - // } - // } - // } - - // // fill location info - // if (!string.IsNullOrEmpty(iplist)) - // { - // List ips = GetIpHostInfo(iplist); - // foreach (var i in ips) - // { - // lock (TcpState) - // { - // IpInfo info; - // if (TcpState.TryGetValue(i.Ip, out info)) - // { - // info.CountryName = i.CountryName; - // info.RegionName = i.RegionName; - // info.City = i.City; - // info.Latitude = i.Latitude; - // info.Longitude = i.Longitude; - // info.TracePoint = false; - - // if (info.CountryName != "Reserved") - // { - // info.Ip = i.Ip; - - // // add host for tracing - // lock (TcpStateNeedtraceInfo) - // { - // if (!TcpStateNeedtraceInfo.Contains(i.Ip)) - // { - // TcpStateNeedtraceInfo.Enqueue(i.Ip); - // } - // } - // } - - // lock (TcpStateNeedLocationInfo) - // { - // TcpStateNeedLocationInfo.Remove(i.Ip); - - // Debug.WriteLine("TcpStateNeedLocationInfo: " + TcpStateNeedLocationInfo.Count + " left..."); - // } - // } - // } - // } - // ips.Clear(); - // } - // else - // { - // break; - // } - // } - // catch (Exception ex) - // { - // Debug.WriteLine("ipInfoSearchWorker_DoWork: " + ex.ToString()); - // } - // Thread.Sleep(1111); - // } - // Debug.WriteLine("ipInfoSearchWorker_DoWork: QUIT"); - // } - - // void iptracerWorker_DoWork(object sender, DoWorkEventArgs e) - // { - // while (!iptracerWorker.CancellationPending) - // { - // try - // { - // string Ip = string.Empty; - // int count = 0; - // lock (TcpStateNeedtraceInfo) - // { - // count = TcpStateNeedtraceInfo.Count; - // if (count > 0) - // { - // Ip = TcpStateNeedtraceInfo.Dequeue(); - // } - // } - - // if (!string.IsNullOrEmpty(Ip)) - // { - // string tracertIps = string.Empty; - - // List tracert; - - // bool contains = false; - // lock (TraceRoutes) - // { - // contains = TraceRoutes.TryGetValue(Ip, out tracert); - // } - - // if (!contains) - // { - // Debug.WriteLine("GetTraceRoute: " + Ip + ", left " + count); - - // tracert = TraceRoute.GetTraceRoute(Ip); - // if (tracert != null) - // { - // if (tracert[tracert.Count - 1].Status == IPStatus.Success) - // { - // foreach (var t in tracert) - // { - // if (!t.ToString().StartsWith("192.168.") && !t.ToString().StartsWith("127.0.")) - // { - // if (tracertIps.Length > 0) - // { - // tracertIps += ","; - // } - // tracertIps += t.Address.ToString(); - // } - // } - - // if (!string.IsNullOrEmpty(tracertIps)) - // { - // List tinfo = GetIpHostInfo(tracertIps); - // if (tinfo.Count > 0) - // { - // for (int i = 0; i < tinfo.Count; i++) - // { - // IpInfo ti = tinfo[i]; - // ti.TracePoint = true; - - // if (ti.CountryName != "Reserved") - // { - // lock (TcpTracePoints) - // { - // TcpTracePoints[ti.Ip] = ti; - // } - // } - // } - // tinfo.Clear(); - - // lock (TraceRoutes) - // { - // TraceRoutes[Ip] = tracert; - // } - // } - // } - // } - // else - // { - // // move failed, eque itself again - // lock (TcpStateNeedtraceInfo) - // { - // TcpStateNeedtraceInfo.Enqueue(Ip); - // } - // } - // } - // } - // } - // else - // { - // break; - // } - // } - // catch (Exception ex) - // { - // Debug.WriteLine("iptracerWorker_DoWork: " + ex.ToString()); - // } - // Thread.Sleep(3333); - // } - // Debug.WriteLine("iptracerWorker_DoWork: QUIT"); - // } - - // void connectionsWorker_DoWork(object sender, DoWorkEventArgs e) - // { - //#if !MONO - // IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties(); - - // while (!connectionsWorker.CancellationPending) - // { - // try - // { - // #region -- xml -- - // // http://ipinfodb.com/ip_location_api.php - - // // http://ipinfodb.com/ip_query2.php?ip=74.125.45.100,206.190.60.37&timezone=false - - // // - // // - // // - // // 74.125.45.100 - // // OK - // // US - // // United States - // // 06 - // // California - // // Mountain View - // // 94043 - // // 37.4192 - // // -122.057 - // // - // #endregion - - // lock (TcpState) - // { - // //TcpConnectionInformation[] tcpInfoList = properties.GetActiveTcpConnections(); - // //foreach(TcpConnectionInformation i in tcpInfoList) - // //{ - - // //} - - // CountryStatus.Clear(); - // ManagedIpHelper.UpdateExtendedTcpTable(false); - - // foreach (TcpRow i in ManagedIpHelper.TcpRows) - // { - // #region -- update TcpState -- - // string Ip = i.RemoteEndPoint.Address.ToString(); - - // // exclude local network - // if (!Ip.StartsWith("192.168.") && !Ip.StartsWith("127.0.")) - // { - // IpInfo info; - // if (!TcpState.TryGetValue(Ip, out info)) - // { - // info = new IpInfo(); - // TcpState[Ip] = info; - - // // request location info - // lock (TcpStateNeedLocationInfo) - // { - // if (!TcpStateNeedLocationInfo.Contains(Ip)) - // { - // TcpStateNeedLocationInfo.Add(Ip); - - // if (!ipInfoSearchWorker.IsBusy) - // { - // ipInfoSearchWorker.RunWorkerAsync(); - // } - // } - // } - // } - - // info.State = i.State; - // info.Port = i.RemoteEndPoint.Port; - // info.StatusTime = DateTime.Now; - - // try - // { - // Process p; - // if (!ProcessList.TryGetValue(i.ProcessId, out p)) - // { - // p = Process.GetProcessById(i.ProcessId); - // ProcessList[i.ProcessId] = p; - // } - // info.ProcessName = p.ProcessName; - // } - // catch - // { - // } - - // if (!string.IsNullOrEmpty(info.CountryName)) - // { - // if (!CountryStatus.ContainsKey(info.CountryName)) - // { - // CountryStatus[info.CountryName] = 1; - // } - // else - // { - // CountryStatus[info.CountryName]++; - // } - // } - // } - // #endregion - // } - // } - - // // launch tracer if needed - // if (TryTraceConnection) - // { - // if (!iptracerWorker.IsBusy) - // { - // lock (TcpStateNeedtraceInfo) - // { - // if (TcpStateNeedtraceInfo.Count > 0) - // { - // iptracerWorker.RunWorkerAsync(); - // } - // } - // } - // } - - // connectionsWorker.ReportProgress(100); - // } - // catch (Exception ex) - // { - // Debug.WriteLine("connectionsWorker_DoWork: " + ex.ToString()); - // } - // Thread.Sleep(3333); - // } - // tcpConnections.Clear(); - //#endif - // } - - // //void connectionsWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) - // //{ - // // try - // // { - // // // stops immediate marker/route/polygon invalidations; - // // // call Refresh to perform single refresh and reset invalidation state - // // MainMap.HoldInvalidation = true; - - // // SelectedCountries.Clear(); - // // //Int32 SelectedCountriesCount = GridConnections.Rows.GetRowCount(DataGridViewElementStates.Selected); - // // //if(SelectedCountriesCount > 0) - // // //{ - // // // for(int i = 0; i < SelectedCountriesCount; i++) - // // // { - // // // string country = GridConnections.SelectedRows[i].Cells[0].Value as string; - // // // SelectedCountries.Add(country); - // // // } - // // //} - // // // - // // //ComparerIpStatus.SortOnlyCountryName = !(SelectedCountriesCount == 0); - - // // lock(TcpState) - // // { - // // bool snap = true; - // // foreach(var tcp in TcpState) - // // { - // // GMapMarker marker; - - // // if(!tcpConnections.TryGetValue(tcp.Key, out marker)) - // // { - // // if(!string.IsNullOrEmpty(tcp.Value.Ip)) - // // { - // // marker = new GMarkerGoogle(new PointLatLng(tcp.Value.Latitude, tcp.Value.Longitude), GMarkerGoogleType.green_small); - // // marker.ToolTipMode = MarkerTooltipMode.OnMouseOver; - // // marker.Tag = tcp.Value.CountryName; - - // // tcpConnections[tcp.Key] = marker; - // // { - // // if(!(SelectedCountriesCount > 0 && !SelectedCountries.Contains(tcp.Value.CountryName))) - // // { - // // objects.Markers.Add(marker); - - // // UpdateMarkerTcpIpToolTip(marker, tcp.Value, "(" + objects.Markers.Count + ") "); - - // // if(snap) - // // { - // // if(checkBoxTcpIpSnap.Checked && !MainMap.IsDragging) - // // { - // // MainMap.Position = marker.Position; - // // } - // // snap = false; - - // // if(lastTcpmarker != null) - // // { - // // marker.ToolTipMode = MarkerTooltipMode.Always; - // // lastTcpmarker.ToolTipMode = MarkerTooltipMode.OnMouseOver; - // // } - - // // lastTcpmarker = marker; - // // } - // // } - // // } - // // } - // // } - // // else - // // { - // // if((DateTime.Now - tcp.Value.StatusTime > TimeSpan.FromSeconds(8)) || (SelectedCountriesCount > 0 && !SelectedCountries.Contains(tcp.Value.CountryName))) - // // { - // // objects.Markers.Remove(marker); - - // // GMapRoute route; - // // if(tcpRoutes.TryGetValue(tcp.Key, out route)) - // // { - // // routes.Routes.Remove(route); - // // } - - // // lock(TcpStateNeedLocationInfo) - // // { - // // bool r = TcpStateNeedLocationInfo.Remove(tcp.Key); - // // if(r) - // // { - // // Debug.WriteLine("TcpStateNeedLocationInfo: removed " + tcp.Key + " " + r); - // // } - // // } - // // } - // // else - // // { - // // marker.Position = new PointLatLng(tcp.Value.Latitude, tcp.Value.Longitude); - // // if(!objects.Markers.Contains(marker)) - // // { - // // objects.Markers.Add(marker); - // // } - // // UpdateMarkerTcpIpToolTip(marker, tcp.Value, string.Empty); - - // // if(TryTraceConnection) - // // { - // // // routes - // // GMapRoute route; - // // if(!this.tcpRoutes.TryGetValue(tcp.Key, out route)) - // // { - // // lock(TraceRoutes) - // // { - // // List tr; - // // if(TraceRoutes.TryGetValue(tcp.Key, out tr)) - // // { - // // if(tr != null) - // // { - // // List points = new List(); - // // foreach(var add in tr) - // // { - // // IpInfo info; - - // // lock(TcpTracePoints) - // // { - // // if(TcpTracePoints.TryGetValue(add.Address.ToString(), out info)) - // // { - // // if(!string.IsNullOrEmpty(info.Ip)) - // // { - // // points.Add(new PointLatLng(info.Latitude, info.Longitude)); - // // } - // // } - // // } - // // } - - // // if(points.Count > 0) - // // { - // // route = new GMapRoute(points, tcp.Value.CountryName); - - // // route.Stroke = new Pen(GetRandomColor()); - // // route.Stroke.Width = 4; - // // route.Stroke.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDot; - - // // route.Stroke.StartCap = LineCap.NoAnchor; - // // route.Stroke.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor; - // // route.Stroke.LineJoin = LineJoin.Round; - - // // routes.Routes.Add(route); - // // tcpRoutes[tcp.Key] = route; - // // } - // // } - // // } - // // } - // // } - // // else - // // { - // // if(!routes.Routes.Contains(route)) - // // { - // // routes.Routes.Add(route); - // // } - // // } - // // } - // // } - // // } - // // } - - // // // update grid data - // // if(panelMenu.Expand && xPanderPanelLive.Expand) - // // { - // // bool empty = CountryStatusView.Count == 0; - - // // if(!ComparerIpStatus.SortOnlyCountryName) - // // { - // // CountryStatusView.Clear(); - // // } - - // // foreach(var c in CountryStatus) - // // { - // // IpStatus s = new IpStatus(); - // // { - // // s.CountryName = c.Key; - // // s.ConnectionsCount = c.Value; - // // } - - // // if(ComparerIpStatus.SortOnlyCountryName) - // // { - // // int idx = CountryStatusView.FindIndex(p => p.CountryName == c.Key); - // // if(idx >= 0) - // // { - // // CountryStatusView[idx] = s; - // // } - // // } - // // else - // // { - // // CountryStatusView.Add(s); - // // } - // // } - - // // CountryStatusView.Sort(ComparerIpStatus); - - // // GridConnections.RowCount = CountryStatusView.Count; - // // GridConnections.Refresh(); - - // // if(empty) - // // { - // // GridConnections.ClearSelection(); - // // } - // // } - // // } - - // // MainMap.Refresh(); - // // } - // // catch(Exception ex) - // // { - // // Debug.WriteLine(ex.ToString()); - // // } - // //} - - // //void GridConnections_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) - // //{ - // // if(e.RowIndex >= CountryStatusView.Count) - // // return; - - // // IpStatus val = CountryStatusView[e.RowIndex]; - - // // switch(GridConnections.Columns[e.ColumnIndex].Name) - // // { - // // case "CountryName": - // // e.Value = val.CountryName; - // // break; - - // // case "ConnectionsCount": - // // e.Value = val.ConnectionsCount; - // // break; - // // } - // //} - - // Color GetRandomColor() - // { - // byte r = Convert.ToByte(rnd.Next(0, 111)); - // byte g = Convert.ToByte(rnd.Next(0, 111)); - // byte b = Convert.ToByte(rnd.Next(0, 111)); - - // return Color.FromArgb(144, r, g, b); - // } - - // void UpdateMarkerTcpIpToolTip(GMapMarker marker, IpInfo tcp, string info) - // { - // marker.ToolTipText = tcp.State.ToString(); - - // if (!string.IsNullOrEmpty(tcp.ProcessName)) - // { - // marker.ToolTipText += " by " + tcp.ProcessName; - // } - - // if (!string.IsNullOrEmpty(tcp.CountryName)) - // { - // marker.ToolTipText += "\n" + tcp.CountryName; - // } - - // if (!string.IsNullOrEmpty(tcp.City)) - // { - // marker.ToolTipText += ", " + tcp.City; - // } - // else - // { - // if (!string.IsNullOrEmpty(tcp.RegionName)) - // { - // marker.ToolTipText += ", " + tcp.RegionName; - // } - // } - - // marker.ToolTipText += "\n" + tcp.Ip + ":" + tcp.Port + "\n" + info; - // } - - // List GetIpHostInfo(string iplist) - // { - // List ret = new List(); - // bool retry = false; - - // string iplistNew = string.Empty; - - // string[] ips = iplist.Split(','); - // foreach (var ip in ips) - // { - // IpInfo val = IpCache.GetDataFromCache(ip); - // if (val != null) - // { - // ret.Add(val); - // } - // else - // { - // if (iplistNew.Length > 0) - // { - // iplistNew += ","; - // } - // iplistNew += ip; - // } - // } - - // if (!string.IsNullOrEmpty(iplistNew)) - // { - // Debug.WriteLine("GetIpHostInfo: " + iplist); - - // string reqUrl = string.Format("http://api.ipinfodb.com/v2/ip_query.php?key=fbea1992ab11f7125064590a417a8461ccaf06728798c718dbd2809b31a7a5e0&ip={0}&timezone=false", iplistNew); - - // while (true) - // { - // ret.Clear(); - // try - // { - // HttpWebRequest httpReq = HttpWebRequest.Create(reqUrl) as HttpWebRequest; - // { - // string result = string.Empty; - // using (HttpWebResponse response = httpReq.GetResponse() as HttpWebResponse) - // { - // using (StreamReader reader = new StreamReader(response.GetResponseStream(), System.Text.Encoding.UTF8)) - // { - // result = reader.ReadToEnd(); - // } - // response.Close(); - // } - - // XmlDocument x = new XmlDocument(); - // x.LoadXml(result); - - // XmlNodeList nodes = x.SelectNodes("/Response"); - // foreach (XmlNode node in nodes) - // { - // string Ip = node.SelectSingleNode("Ip").InnerText; - - // IpInfo info = new IpInfo(); - // { - // info.Ip = Ip; - // info.CountryName = node.SelectSingleNode("CountryName").InnerText; - // info.RegionName = node.SelectSingleNode("RegionName").InnerText; - // info.City = node.SelectSingleNode("City").InnerText; - // info.Latitude = double.Parse(node.SelectSingleNode("Latitude").InnerText, CultureInfo.InvariantCulture); - // info.Longitude = double.Parse(node.SelectSingleNode("Longitude").InnerText, CultureInfo.InvariantCulture); - // info.CacheTime = DateTime.Now; - - // ret.Add(info); - // } - - // IpCache.PutDataToCache(Ip, info); - // } - // } - - // break; - // } - // catch (Exception ex) - // { - // if (retry) // fail in retry too, full stop ;} - // { - // break; - // } - // retry = true; - // reqUrl = string.Format("http://backup.ipinfodb.com/v2/ip_query.php?key=fbea1992ab11f7125064590a417a8461ccaf06728798c718dbd2809b31a7a5e0&ip={0}&timezone=false", iplist); - // Debug.WriteLine("GetIpHostInfo: " + ex.Message + ", retry on backup server..."); - // } - // } - // } - // return ret; - // } - - //#endregion - - #region -- some functions -- - - //void RegeneratePolygon() - //{ - // List polygonPoints = new List(); - - // foreach (GMapMarker m in objects.Markers) - // { - // if (m is GMapMarkerRect) - // { - // m.Tag = polygonPoints.Count; - // polygonPoints.Add(m.Position); - // } - // } - - // if (polygon == null) - // { - // polygon = new GMapPolygon(polygonPoints, "polygon test"); - // polygon.IsHitTestVisible = true; - // polygons.Polygons.Add(polygon); - // } - // else - // { - // polygon.Points.Clear(); - // polygon.Points.AddRange(polygonPoints); - - // if (polygons.Polygons.Count == 0) - // { - // polygons.Polygons.Add(polygon); - // } - // else - // { - // MainMap.UpdatePolygonLocalPosition(polygon); - // } - // } - //} - - // load mobile gps log - - void AddGpsMobileLogRoutes(string file) - { - try - { - DateTime? date = null; - DateTime? dateEnd = null; - - if (MobileLogFrom.Checked) - { - date = MobileLogFrom.Value.ToUniversalTime(); - } - - if (MobileLogTo.Checked) - { - dateEnd = MobileLogTo.Value.ToUniversalTime(); - } - - var log = Stuff.GetRoutesFromMobileLog(file, date, dateEnd, 3.3); - - if (routes != null) - { - List track = new List(); - - var sessions = new List>(log); - - PointLatLng lastPoint = PointLatLng.Empty; - - foreach (var session in sessions) - { - // connect to last session with direct line - if (!lastPoint.IsEmpty && session.Count > 0) - { - track.Clear(); - track.Add(lastPoint); - track.Add(session[0].Position); - - GMapRoute grl = new GMapRoute(track, ""); - grl.Stroke.Color = Color.Red; - grl.Stroke.Width = 2.0f; - routes.Routes.Add(grl); - } - - track.Clear(); - - foreach (var point in session) - { - track.Add(point.Position); - } - - if (track.Count > 0) - { - lastPoint = track[track.Count - 1]; - } - else - { - lastPoint = PointLatLng.Empty; - } - - GMapRoute gr = new GMapRoute(track, ""); - routes.Routes.Add(gr); - } - - sessions.Clear(); - sessions = null; - - track.Clear(); - track = null; - } - } - catch (Exception ex) - { - Debug.WriteLine("AddGpsMobileLogRoutes: " + ex.ToString()); - } - } - - ///// - ///// adds marker using geocoder - ///// - ///// - //void AddLocationLithuania(string place) - //{ - // GeoCoderStatusCode status = GeoCoderStatusCode.Unknow; - // PointLatLng? pos = GMapProviders.GoogleMap.GetPoint("Lithuania, " + place, out status); - // if (pos != null && status == GeoCoderStatusCode.G_GEO_SUCCESS) - // { - // GMarkerGoogle m = new GMarkerGoogle(pos.Value, GMarkerGoogleType.green); - // m.ToolTip = new GMapRoundedToolTip(m); - - // GMapMarkerRect mBorders = new GMapMarkerRect(pos.Value); - // { - // mBorders.InnerMarker = m; - // mBorders.ToolTipText = place; - // mBorders.ToolTipMode = MarkerTooltipMode.Always; - // } - - // objects.Markers.Add(m); - // objects.Markers.Add(mBorders); - // } - //} - - #endregion - #region -- map events -- + // details unknown- MDKfunctional void OnTileCacheComplete() { Debug.WriteLine("OnTileCacheComplete"); @@ -1382,6 +249,7 @@ namespace Demo.WindowsForms } } + //details unknown - MDKfunctional void OnTileCacheStart() { Debug.WriteLine("OnTileCacheStart"); @@ -1397,6 +265,7 @@ namespace Demo.WindowsForms } } + //details unknown - MDKfunctional void OnTileCacheProgress(int left) { if (!IsDisposed) @@ -1409,6 +278,7 @@ namespace Demo.WindowsForms } } + //runs when cursor leaves a marker - MDKfunctional void MainMap_OnMarkerLeave(GMapMarker item) { if (item is GMapMarkerRect) @@ -1422,6 +292,7 @@ namespace Demo.WindowsForms } } + //runs when cursor enters a marker - MDKfunctional void MainMap_OnMarkerEnter(GMapMarker item) { if (item is GMapMarkerRect) @@ -1435,22 +306,7 @@ namespace Demo.WindowsForms } } - GMapPolygon currentPolygon = null; - void MainMap_OnPolygonLeave(GMapPolygon item) - { - currentPolygon = null; - item.Stroke.Color = Color.MidnightBlue; - Debug.WriteLine("OnPolygonLeave: " + item.Name); - } - - void MainMap_OnPolygonEnter(GMapPolygon item) - { - currentPolygon = item; - item.Stroke.Color = Color.Red; - Debug.WriteLine("OnPolygonEnter: " + item.Name); - } - - GMapRoute currentRoute = null; + //runs when cursor leaves a route - MDKfunctional void MainMap_OnRouteLeave(GMapRoute item) { currentRoute = null; @@ -1458,6 +314,7 @@ namespace Demo.WindowsForms Debug.WriteLine("OnRouteLeave: " + item.Name); } + //runs when cursor enters a route - MDKfunctional void MainMap_OnRouteEnter(GMapRoute item) { currentRoute = item; @@ -1465,19 +322,16 @@ namespace Demo.WindowsForms Debug.WriteLine("OnRouteEnter: " + item.Name); } + // - MDKfunctional void MainMap_OnMapTypeChanged(GMapProvider type) { comboBoxMapType.SelectedItem = type; trackBarZoomLevel.Minimum = MainMap.MinZoom * 100; trackBarZoomLevel.Maximum = MainMap.MaxZoom * 100; - - //if(rbtnFlight.Checked) - //{ - // MainMap.ZoomAndCenterMarkers("objects"); - //} } + //updates current marker coordinate dislpay - MDKfunctional void MainMap_MouseUp(object sender, MouseEventArgs e) { // MDKAdd @@ -1489,15 +343,7 @@ namespace Demo.WindowsForms } } - // add demo circle - void MainMap_MouseDoubleClick(object sender, MouseEventArgs e) - { - var cc = new GMapMarkerCircle(MainMap.FromLocalToLatLng(e.X, e.Y)); - cc.ToolTipMode = MarkerTooltipMode.Always; - cc.ToolTipText = "CC"; - objects.Markers.Add(cc); - } - + // - MDKfunctional void MainMap_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) @@ -1519,7 +365,7 @@ namespace Demo.WindowsForms } } - // move current marker with left holding + // move current marker with left holding - MDKfunctional void MainMap_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left && isMouseDown) @@ -1571,14 +417,14 @@ namespace Demo.WindowsForms } } - // MapZoomChanged + // MapZoomChanged - MDKfunctional void MainMap_OnMapZoomChanged() { trackBarZoomLevel.Value = (int)(MainMap.Zoom * 100.0); textBoxZoomCurrent.Text = MainMap.Zoom.ToString(); } - // click on some marker + // click on a marker - MDKfunctional void MainMap_OnMarkerClick(GMapMarker item, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) @@ -1612,7 +458,7 @@ namespace Demo.WindowsForms } } - // loader start loading tiles + // loader start loading tiles - MDKfunctional void MainMap_OnTileLoadStart() { MethodInvoker m = delegate() @@ -1628,7 +474,7 @@ namespace Demo.WindowsForms } } - // loader end loading tiles + // loader end loading tiles - MDKfunctional void MainMap_OnTileLoadComplete(long ElapsedMilliseconds) { MainMap.ElapsedMilliseconds = ElapsedMilliseconds; @@ -1648,45 +494,22 @@ namespace Demo.WindowsForms } } - // current point changed - void MainMap_OnPositionChanged(PointLatLng point) - { - textBoxLatCurrent.Text = point.Lat.ToString(CultureInfo.InvariantCulture); - textBoxLngCurrent.Text = point.Lng.ToString(CultureInfo.InvariantCulture); - - //lock (flights) - //{ - // lastPosition = point; - // lastZoom = (int)MainMap.Zoom; - //} - } - - //PointLatLng lastPosition; - //int lastZoom; - - // center markers on start - private void MainForm_Load(object sender, EventArgs e) - { - trackBarZoomLevel.Value = (int)MainMap.Zoom * 100; - Activate(); - TopMost = true; - TopMost = false; - - PrepareGraphs(); - } #endregion #region -- menu panels expanders -- + // - MDKfunctional private void xPanderPanel1_Click(object sender, EventArgs e) { xPanderPanelList1.Expand(xPanderPanelMain); } + // - MDKfunctional private void xPanderPanelCache_Click(object sender, EventArgs e) { xPanderPanelList1.Expand(xPanderPanelCache); } + // - MDKfunctional private void xPanderPanelInfo_Click(object sender, EventArgs e) { xPanderPanelList1.Expand(xPanderPanelInfo); @@ -1695,9 +518,7 @@ namespace Demo.WindowsForms #region -- ui events -- - bool UserAcceptedLicenseOnce = false; - - // change map type + // change map type - MDKfunctional private void comboBoxMapType_DropDownClosed(object sender, EventArgs e) { if (!UserAcceptedLicenseOnce) @@ -1735,20 +556,20 @@ namespace Demo.WindowsForms } } - // change mdoe + // change mdoe - MDKfunctional private void comboBoxMode_DropDownClosed(object sender, EventArgs e) { MainMap.Manager.Mode = (AccessMode)comboBoxMode.SelectedValue; MainMap.ReloadMap(); } - // zoom + // zoom - MDKfunctional private void trackBar1_ValueChanged(object sender, EventArgs e) { MainMap.Zoom = trackBarZoomLevel.Value / 100.0; } - // go to + // go to coordinates- MDKfunctional private void btnGoToCoords_Click(object sender, EventArgs e) { try @@ -1764,26 +585,13 @@ namespace Demo.WindowsForms } } - // goto by geocoder - //private void textBoxGeo_KeyPress(object sender, KeyPressEventArgs e) - //{ - // if ((Keys)e.KeyChar == Keys.Enter) - // { - // GeoCoderStatusCode status = MainMap.SetCurrentPositionByKeywords(textBoxGeo.Text); - // if (status != GeoCoderStatusCode.G_GEO_SUCCESS) - // { - // MessageBox.Show("Google Maps Geocoder can't find: '" + textBoxGeo.Text + "', reason: " + status.ToString(), "GMap.NET", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); - // } - // } - //} - - // reload map + // reload map - MDKfunctional private void btnReload_Click(object sender, EventArgs e) { MainMap.ReloadMap(); } - // cache config + // cache config - MDKfunctional private void checkBoxUseCache_CheckedChanged(object sender, EventArgs e) { MainMap.Manager.UseRouteCache = checkBoxUseRouteCache.Checked; @@ -1792,7 +600,7 @@ namespace Demo.WindowsForms MainMap.Manager.UseDirectionsCache = checkBoxUseRouteCache.Checked; } - // clear cache + // clear cache - MDKfunctional private void button2_Click(object sender, EventArgs e) { if (MessageBox.Show("Are You sure?", "Clear GMap.NET cache?", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK) @@ -1809,7 +617,7 @@ namespace Demo.WindowsForms } } - // set route start + // set route start - MDKfunctional bool hasStartMarker = false; private void buttonSetStart_Click(object sender, EventArgs e) { @@ -1821,6 +629,8 @@ namespace Demo.WindowsForms if(hasStartMarker){ objects.Markers.RemoveAt(0); } + + //add the marker m.ToolTipText = "Start"; m.ToolTipMode = MarkerTooltipMode.Always; objects.Markers.Insert(0, m); @@ -1828,7 +638,7 @@ namespace Demo.WindowsForms hasStartMarker = true; } - // set route end + // set route end - MDKfunctional bool hasEndMarker = false; private void buttonSetEnd_Click(object sender, EventArgs e) { @@ -1843,6 +653,8 @@ namespace Demo.WindowsForms } m.ToolTipText = "End"; m.ToolTipMode = MarkerTooltipMode.Always; + + //add the marker if (hasStartMarker) { objects.Markers.Insert(1, m); @@ -1854,7 +666,7 @@ namespace Demo.WindowsForms hasEndMarker = true; } - // add test route + // add route - MDKfunctional private void btnAddRoute_Click(object sender, EventArgs e) { RoutingProvider rp = MainMap.MapProvider as RoutingProvider; @@ -1882,9 +694,6 @@ namespace Demo.WindowsForms objects.Markers.Add(m1); objects.Markers.Add(m2); - - //MainMap.ZoomAndCenterRoute(r); - } } @@ -1892,85 +701,23 @@ namespace Demo.WindowsForms private void addUserMarker(object sender, EventArgs e) { GMarkerGoogle m = new GMarkerGoogle(currentMarker.Position, GMarkerGoogleType.blue_small); - //GMapMarkerRect mBorders = new GMapMarkerRect(currentMarker.Position); - //{ - // mBorders.InnerMarker = m; - // if(polygon != null) - // { - // mBorders.Tag = polygon.Points.Count; - // } - // mBorders.ToolTipMode = MarkerTooltipMode.Always; - //} - Placemark? p = null; - if (xboxPlacemarkInfo.Checked) - { - GeoCoderStatusCode status; - var ret = GMapProviders.GoogleMap.GetPlacemark(currentMarker.Position, out status); - if (status == GeoCoderStatusCode.G_GEO_SUCCESS && ret != null) - { - p = ret; - } - } - - //if(p != null) - //{ - // mBorders.ToolTipText = p.Value.Address; - //} - //else - //{ - // mBorders.ToolTipText = currentMarker.Position.ToString(); - //} m.ToolTipText = "User"; m.ToolTipMode = MarkerTooltipMode.Always; objects.Markers.Add(m); - //objects.Markers.Add(mBorders); - - //RegeneratePolygon(); } // add marker from APRS transmission - MDKEdit - TODO: Function not needed; addUserMarker() replaces it ?? private void addMarkerFromButton(object sender, EventArgs e) { GMarkerGoogle m = new GMarkerGoogle(currentMarker.Position, GMarkerGoogleType.blue_small); - //GMapMarkerRect mBorders = new GMapMarkerRect(currentMarker.Position); - //{ - // mBorders.InnerMarker = m; - // if(polygon != null) - // { - // mBorders.Tag = polygon.Points.Count; - // } - // mBorders.ToolTipMode = MarkerTooltipMode.Always; - //} - Placemark? p = null; - if (xboxPlacemarkInfo.Checked) - { - GeoCoderStatusCode status; - var ret = GMapProviders.GoogleMap.GetPlacemark(currentMarker.Position, out status); - if (status == GeoCoderStatusCode.G_GEO_SUCCESS && ret != null) - { - p = ret; - } - } - - //if(p != null) - //{ - // mBorders.ToolTipText = p.Value.Address; - //} - //else - //{ - // mBorders.ToolTipText = currentMarker.Position.ToString(); - //} m.ToolTipText = "Tracker"; m.ToolTipMode = MarkerTooltipMode.Always; objects.Markers.Add(m); - //objects.Markers.Add(mBorders); - - //RegeneratePolygon(); } - // clear routes + // clear routes - MDKfunctional private void btnClearRoutes_Click(object sender, EventArgs e) { routes.Routes.Clear(); @@ -1994,8 +741,8 @@ namespace Demo.WindowsForms hasEndMarker = false; hasStartMarker = false; } - - // clear markers + + // clear markers - MDKfunctional private void btnClearMarkers_Click(object sender, EventArgs e) { //preserve stert/end markes of this route @@ -2011,47 +758,46 @@ namespace Demo.WindowsForms } } + //clears all markers and routes - MDKfunctional private void btnClearAll_Click(object sender, EventArgs e) { objects.Markers.Clear(); - objects.Routes.Clear(); + routes.Routes.Clear(); hasEndMarker = false; hasStartMarker = false; } - // show current marker + // show current marker - MDKfunctional private void checkBoxCurrentMarker_CheckedChanged(object sender, EventArgs e) { currentMarker.IsVisible = xboxCurrentMarker.Checked; } - // can drag + // can drag - MDKfunctional private void checkBoxCanDrag_CheckedChanged(object sender, EventArgs e) { MainMap.CanDragMap = xboxCanDrag.Checked; } - - - // zoom to max for markers + // zoom to max for markers - MDKfunctional private void button7_Click(object sender, EventArgs e) { MainMap.ZoomAndCenterMarkers("objects"); } - // export map data + // export map data - MDKfunctional private void button9_Click(object sender, EventArgs e) { MainMap.ShowExportDialog(); } - // import map data + // import map data - MDKfunctional private void button10_Click(object sender, EventArgs e) { MainMap.ShowImportDialog(); } - // prefetch + // prefetch - MDKfunctional private void button11_Click(object sender, EventArgs e) { RectLatLng area = MainMap.SelectedArea; @@ -2086,7 +832,7 @@ namespace Demo.WindowsForms } } - // saves current map view + // saves current map view - MDKfunctional private void btnSaveView_Click(object sender, EventArgs e) { try @@ -2117,13 +863,13 @@ namespace Demo.WindowsForms } } - // debug tile grid - private void checkBoxDebug_CheckedChanged(object sender, EventArgs e) + // debug tile grid - MDKfunctional + private void showGridlines(object sender, EventArgs e) { MainMap.ShowTileGridLines = xboxGrid.Checked; } - // launch static map maker + // saves image of selected area - MDKfunctional private void btnGetStatic_Click(object sender, EventArgs e) { StaticImage st = new StaticImage(this); @@ -2131,39 +877,7 @@ namespace Demo.WindowsForms st.Show(); } - // add gps log from mobile - private void btnMobileLog_Click(object sender, EventArgs e) - { - using (FileDialog dlg = new OpenFileDialog()) - { - dlg.CheckPathExists = true; - dlg.CheckFileExists = false; - dlg.AddExtension = true; - dlg.DefaultExt = "gpsd"; - dlg.ValidateNames = true; - dlg.Title = "GMap.NET: open gps log generated in your windows mobile"; - dlg.Filter = "GMap.NET gps log DB files (*.gpsd)|*.gpsd"; - dlg.FilterIndex = 1; - dlg.RestoreDirectory = true; - - if (dlg.ShowDialog() == DialogResult.OK) - { - routes.Routes.Clear(); - - mobileGpsLog = dlg.FileName; - - // add routes - AddGpsMobileLogRoutes(dlg.FileName); - - if (routes.Routes.Count > 0) - { - MainMap.ZoomAndCenterRoutes(null); - } - } - } - } - - // key-up events + // key-up events - MDKfunctional private void MainForm_KeyUp(object sender, KeyEventArgs e) { int offset = -22; @@ -2186,11 +900,6 @@ namespace Demo.WindowsForms } else if (e.KeyCode == Keys.Delete) { - //if (currentPolygon != null) - //{ - // polygons.Polygons.Remove(currentPolygon); - // currentPolygon = null; - //} if (currentRoute != null) { @@ -2223,7 +932,7 @@ namespace Demo.WindowsForms } } - // key-press events + // key-press events - MDKfunctional private void MainForm_KeyPress(object sender, KeyPressEventArgs e) { if (MainMap.Focused) @@ -2247,238 +956,19 @@ namespace Demo.WindowsForms } } + //changes zoom - MDKfunctional private void buttonZoomUp_Click(object sender, EventArgs e) { MainMap.Zoom = ((int)MainMap.Zoom) + 1; } + //changes zoom - MDKfunctional private void buttonZoomDown_Click(object sender, EventArgs e) { MainMap.Zoom = ((int)(MainMap.Zoom + 0.99)) - 1; } - // engage some live demo - //private void RealTimeChanged(object sender, EventArgs e) - //{ - // objects.Markers.Clear(); - // polygons.Polygons.Clear(); - // routes.Routes.Clear(); - - // //// start performance test - // //if(rbtnPerf.Checked) - // //{ - // // timerPerf.Interval = 44; - // // timerPerf.Start(); - // //} - // //else - // //{ - // // // stop performance test - // // timerPerf.Stop(); - // //} - - // // start realtime transport tracking demo - // //if(rbtnFlight.Checked) - // //{ - // // if(!flightWorker.IsBusy) - // // { - // // firstLoadFlight = true; - // // flightWorker.RunWorkerAsync(); - // // } - // //} - // //else - // //{ - // // if(flightWorker.IsBusy) - // // { - // // flightWorker.CancelAsync(); - // // } - // //} - - // // vehicle demo - // //if(rbtnVehicle.Checked) - // //{ - // // if(!transportWorker.IsBusy) - // // { - // // firstLoadTrasport = true; - // // transportWorker.RunWorkerAsync(); - // // } - // //} - // //else - // //{ - // // if(transportWorker.IsBusy) - // // { - // // transportWorker.CancelAsync(); - // // } - // //} - - // // start live tcp/ip connections demo - // if(rbtnTcpIp.Checked) - // { - // GridConnections.Visible = true; - // checkBoxTcpIpSnap.Visible = true; - // checkBoxTraceRoute.Visible = true; - // GridConnections.Refresh(); - - // if(!connectionsWorker.IsBusy) - // { - // //if(MainMap.Provider != MapType.GoogleMap) - // //{ - // // MainMap.MapType = MapType.GoogleMap; - // //} - // MainMap.Zoom = 5; - - // connectionsWorker.RunWorkerAsync(); - // } - // } - // else - // { - // CountryStatusView.Clear(); - // GridConnections.Visible = false; - // checkBoxTcpIpSnap.Visible = false; - // checkBoxTraceRoute.Visible = false; - - // if(connectionsWorker.IsBusy) - // { - // connectionsWorker.CancelAsync(); - // } - - // if(ipInfoSearchWorker.IsBusy) - // { - // ipInfoSearchWorker.CancelAsync(); - // } - - // if(iptracerWorker.IsBusy) - // { - // iptracerWorker.CancelAsync(); - // } - // } - //} - - // export mobile gps log to gpx file - private void buttonExportToGpx_Click(object sender, EventArgs e) - { - try - { - using (SaveFileDialog sfd = new SaveFileDialog()) - { - sfd.Filter = "GPX (*.gpx)|*.gpx"; - sfd.FileName = "mobile gps log"; - - DateTime? date = null; - DateTime? dateEnd = null; - - if (MobileLogFrom.Checked) - { - date = MobileLogFrom.Value.ToUniversalTime(); - - sfd.FileName += " from " + MobileLogFrom.Value.ToString("yyyy-MM-dd HH-mm"); - } - - if (MobileLogTo.Checked) - { - dateEnd = MobileLogTo.Value.ToUniversalTime(); - - sfd.FileName += " to " + MobileLogTo.Value.ToString("yyyy-MM-dd HH-mm"); - } - - if (sfd.ShowDialog() == DialogResult.OK) - { - var log = Stuff.GetRoutesFromMobileLog(mobileGpsLog, date, dateEnd, 3.3); - if (log != null) - { - if (MainMap.Manager.ExportGPX(log, sfd.FileName)) - { - MessageBox.Show("GPX saved: " + sfd.FileName, "GMap.NET", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - } - } - } - catch (Exception ex) - { - MessageBox.Show("GPX failed to save: " + ex.Message, "GMap.NET", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - - // load gpx file - private void btnLoadGPX_Click(object sender, EventArgs e) - { - using (FileDialog dlg = new OpenFileDialog()) - { - dlg.CheckPathExists = true; - dlg.CheckFileExists = false; - dlg.AddExtension = true; - dlg.DefaultExt = "gpx"; - dlg.ValidateNames = true; - dlg.Title = "GMap.NET: open gpx log"; - dlg.Filter = "gpx files (*.gpx)|*.gpx"; - dlg.FilterIndex = 1; - dlg.RestoreDirectory = true; - - if (dlg.ShowDialog() == DialogResult.OK) - { - try - { - string gpx = File.ReadAllText(dlg.FileName); - - gpxType r = MainMap.Manager.DeserializeGPX(gpx); - if (r != null) - { - if (r.trk.Length > 0) - { - foreach (var trk in r.trk) - { - List points = new List(); - - foreach (var seg in trk.trkseg) - { - foreach (var p in seg.trkpt) - { - points.Add(new PointLatLng((double)p.lat, (double)p.lon)); - } - } - - GMapRoute rt = new GMapRoute(points, string.Empty); - { - rt.Stroke = new Pen(Color.FromArgb(144, Color.Red)); - rt.Stroke.Width = 5; - rt.Stroke.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDot; - } - routes.Routes.Add(rt); - } - - MainMap.ZoomAndCenterRoutes(null); - } - } - } - catch (Exception ex) - { - Debug.WriteLine("GPX import: " + ex.ToString()); - MessageBox.Show("Error importing gpx: " + ex.Message, "GMap.NET", MessageBoxButtons.OK, MessageBoxIcon.Warning); - } - } - } - } - - // enable/disable host tracing - //private void checkBoxTraceRoute_CheckedChanged(object sender, EventArgs e) - //{ - // TryTraceConnection = checkBoxTraceRoute.Checked; - // if(!TryTraceConnection) - // { - // if(iptracerWorker.IsBusy) - // { - // iptracerWorker.CancelAsync(); - // } - // routes.Routes.Clear(); - // } - //} - - //private void GridConnections_DoubleClick(object sender, EventArgs e) - //{ - // GridConnections.ClearSelection(); - //} - - // open disk cache location + // open disk cache location - MDKuntested private void button17_Click(object sender, EventArgs e) { try @@ -2495,6 +985,7 @@ namespace Demo.WindowsForms #endregion #region chart click events + //this method clears the background of all charts private void ResetChartColors() { @@ -2784,16 +1275,6 @@ namespace Demo.WindowsForms GMarkerGoogle m = new GMarkerGoogle(APRSloc, GMarkerGoogleType.blue_small); - Placemark? p = null; - if (xboxPlacemarkInfo.Checked) - { - GeoCoderStatusCode status; - var ret = GMapProviders.GoogleMap.GetPlacemark(currentMarker.Position, out status); - if (status == GeoCoderStatusCode.G_GEO_SUCCESS && ret != null) - { - p = ret; - } - } m.ToolTipText = "Tracker"; m.ToolTipMode = MarkerTooltipMode.Always; objects.Markers.Add(m); @@ -3064,8 +1545,9 @@ namespace Demo.WindowsForms #endregion + } } //TODO: CSV logging, offline caching -//weekly changes: chart text display, map functionality[routes, layout, markers], +//weekly changes: chart text display, map functionality[routes, layout, markers], find/remove unused code //resume @: start/stop markers clear tracker markers after route clear \ No newline at end of file