/// <summary> /// See <see cref="IDisposable.Dispose" /> for more information. /// </summary> public void Dispose() { if (_fileStream != null) { _fileStream.Close(); _fileStream = null; } _fileName = null; _dataMap = null; GC.SuppressFinalize(this); }
void ReInitialize() { _dataMap = new DataMap(); _dataMap.AddFirst(new FileDataBlock(0, _fileStream.Length)); _totalLength = _fileStream.Length; }
internal Enumerator(DataMap map) { _map = map; _version = map._version; _current = null; _index = -1; }
private void InitializeComponent() { System.Windows.Forms.StatusStrip _StatusBar; System.Windows.Forms.ToolStripButton _OpenButton; System.Windows.Forms.ToolStrip _MenuBar; System.Windows.Forms.ToolStripMenuItem _ColorBlackMenuItem; System.Windows.Forms.ToolStripMenuItem _ColorBySpeedMenuItem; System.Windows.Forms.ToolStripMenuItem _ColorByAltitudeMenuItem; this._ZoomLabel = new System.Windows.Forms.ToolStripStatusLabel(); this._CoordinatesLabel = new System.Windows.Forms.ToolStripStatusLabel(); this._DownloadsLabel = new System.Windows.Forms.ToolStripStatusLabel(); this._ColoringMenuItem = new System.Windows.Forms.ToolStripDropDownButton(); this._ColorByAltitudeDifferenceMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._OpacityTrackbar = new System.Windows.Forms.TrackBar(); this._Map = new System.Windows.Forms.DataMap(); _StatusBar = new System.Windows.Forms.StatusStrip(); _OpenButton = new System.Windows.Forms.ToolStripButton(); _MenuBar = new System.Windows.Forms.ToolStrip(); _ColorBlackMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _ColorBySpeedMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _ColorByAltitudeMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _StatusBar.SuspendLayout(); _MenuBar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._OpacityTrackbar)).BeginInit(); this.SuspendLayout(); // // _StatusBar // _StatusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._ZoomLabel, this._CoordinatesLabel, this._DownloadsLabel }); _StatusBar.Location = new System.Drawing.Point(0, 508); _StatusBar.Name = "_StatusBar"; _StatusBar.Size = new System.Drawing.Size(844, 22); _StatusBar.TabIndex = 3; _StatusBar.Text = "statusStrip1"; // // _ZoomLabel // this._ZoomLabel.Name = "_ZoomLabel"; this._ZoomLabel.Size = new System.Drawing.Size(59, 17); this._ZoomLabel.Text = "Zoom: XX"; // // _CoordinatesLabel // this._CoordinatesLabel.Name = "_CoordinatesLabel"; this._CoordinatesLabel.Size = new System.Drawing.Size(71, 17); this._CoordinatesLabel.Text = "Coordinates"; // // _DownloadsLabel // this._DownloadsLabel.Name = "_DownloadsLabel"; this._DownloadsLabel.Size = new System.Drawing.Size(13, 17); this._DownloadsLabel.Text = "0"; // // _OpenButton // _OpenButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; _OpenButton.ImageTransparentColor = System.Drawing.Color.Magenta; _OpenButton.Name = "_OpenButton"; _OpenButton.Size = new System.Drawing.Size(40, 22); _OpenButton.Text = "Open"; _OpenButton.Click += new System.EventHandler(this._OnOpenButtonClicked); // // _MenuBar // _MenuBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _OpenButton, this._ColoringMenuItem }); _MenuBar.Location = new System.Drawing.Point(0, 0); _MenuBar.Name = "_MenuBar"; _MenuBar.Size = new System.Drawing.Size(844, 25); _MenuBar.TabIndex = 5; _MenuBar.Text = "toolStrip1"; // // _ColoringMenuItem // this._ColoringMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this._ColoringMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { _ColorBlackMenuItem, _ColorBySpeedMenuItem, _ColorByAltitudeMenuItem, this._ColorByAltitudeDifferenceMenuItem }); this._ColoringMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this._ColoringMenuItem.Name = "_ColoringMenuItem"; this._ColoringMenuItem.Size = new System.Drawing.Size(66, 22); this._ColoringMenuItem.Text = "Coloring"; // // _ColorBlackMenuItem // _ColorBlackMenuItem.Name = "_ColorBlackMenuItem"; _ColorBlackMenuItem.Size = new System.Drawing.Size(189, 22); _ColorBlackMenuItem.Text = "Black"; _ColorBlackMenuItem.Click += new System.EventHandler(this._OnColorBlackMenuItemClicked); // // _ColorBySpeedMenuItem // _ColorBySpeedMenuItem.Name = "_ColorBySpeedMenuItem"; _ColorBySpeedMenuItem.Size = new System.Drawing.Size(189, 22); _ColorBySpeedMenuItem.Text = "by Speed"; _ColorBySpeedMenuItem.Click += new System.EventHandler(this._OnColorBySpeedMenuItemClicked); // // _ColorByAltitudeMenuItem // _ColorByAltitudeMenuItem.Name = "_ColorByAltitudeMenuItem"; _ColorByAltitudeMenuItem.Size = new System.Drawing.Size(189, 22); _ColorByAltitudeMenuItem.Text = "by Altitude"; _ColorByAltitudeMenuItem.Click += new System.EventHandler(this._OnColorByAltitudeMenuItemClicked); // // _ColorByAltitudeDifferenceMenuItem // this._ColorByAltitudeDifferenceMenuItem.Name = "_ColorByAltitudeDifferenceMenuItem"; this._ColorByAltitudeDifferenceMenuItem.Size = new System.Drawing.Size(189, 22); this._ColorByAltitudeDifferenceMenuItem.Text = "by Altitude Difference"; this._ColorByAltitudeDifferenceMenuItem.Click += new System.EventHandler(this._OnColorByAltitudeDifferenceMenuItemClicked); // // _OpacityTrackbar // this._OpacityTrackbar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this._OpacityTrackbar.BackColor = System.Drawing.SystemColors.Control; this._OpacityTrackbar.Location = new System.Drawing.Point(728, 41); this._OpacityTrackbar.Maximum = 100; this._OpacityTrackbar.Name = "_OpacityTrackbar"; this._OpacityTrackbar.Size = new System.Drawing.Size(104, 45); this._OpacityTrackbar.TabIndex = 6; this._OpacityTrackbar.TabStop = false; this._OpacityTrackbar.TickStyle = System.Windows.Forms.TickStyle.None; this._OpacityTrackbar.Value = 50; this._OpacityTrackbar.Scroll += new System.EventHandler(this._OnOpacityTrackbarScrolled); this._OpacityTrackbar.Enter += new System.EventHandler(this._OnOpacityTrackbarFocusEntered); // // _Map // this._Map.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._Map.BackColor = System.Drawing.Color.Black; this._Map.Location = new System.Drawing.Point(0, 25); this._Map.MapProvider = null; this._Map.Margin = new System.Windows.Forms.Padding(0); this._Map.Name = "_Map"; this._Map.Opacity = 1F; this._Map.Size = new System.Drawing.Size(844, 483); this._Map.TabIndex = 4; this._Map.TranslateX = 0; this._Map.TranslateY = 0; this._Map.MouseDown += new System.Windows.Forms.MouseEventHandler(this._OnMapControlMouseDown); this._Map.MouseMove += new System.Windows.Forms.MouseEventHandler(this._OnMapControlMouseMoved); this._Map.MouseUp += new System.Windows.Forms.MouseEventHandler(this._OnMapControlMouseUp); // // MainWindow // this.ClientSize = new System.Drawing.Size(844, 530); this.Controls.Add(this._OpacityTrackbar); this.Controls.Add(_MenuBar); this.Controls.Add(this._Map); this.Controls.Add(_StatusBar); this.Name = "MainWindow"; this.Text = "Mapper"; this.Load += new System.EventHandler(this._OnLoaded); _StatusBar.ResumeLayout(false); _StatusBar.PerformLayout(); _MenuBar.ResumeLayout(false); _MenuBar.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this._OpacityTrackbar)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }