Exemple #1
0
 /// <summary>
 /// Требуемый метод для поддержки конструктора — не изменяйте
 /// содержимое этого метода с помощью редактора кода.
 /// </summary>
 private void InitializeComponent()
 {
     MiniGIS.GEOPoint geoPoint1 = new MiniGIS.GEOPoint();
     this.toolStrip             = new System.Windows.Forms.ToolStrip();
     this.selectBtn             = new System.Windows.Forms.ToolStripButton();
     this.panBtn                = new System.Windows.Forms.ToolStripButton();
     this.zoomInBtn             = new System.Windows.Forms.ToolStripButton();
     this.zoomOutBtn            = new System.Windows.Forms.ToolStripButton();
     this.entireViewBtn         = new System.Windows.Forms.ToolStripButton();
     this.statusStrip1          = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
     this.mapControl            = new MiniGIS.Map();
     this.toolStrip.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // toolStrip
     //
     this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.selectBtn,
         this.panBtn,
         this.zoomInBtn,
         this.zoomOutBtn,
         this.entireViewBtn
     });
     this.toolStrip.Location = new System.Drawing.Point(0, 0);
     this.toolStrip.Name     = "toolStrip";
     this.toolStrip.Size     = new System.Drawing.Size(782, 27);
     this.toolStrip.TabIndex = 1;
     this.toolStrip.Text     = "toolStrip1";
     //
     // selectBtn
     //
     this.selectBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.selectBtn.Image                 = global::MiniGIS.Properties.Resources.Select;
     this.selectBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.selectBtn.Name   = "selectBtn";
     this.selectBtn.Size   = new System.Drawing.Size(24, 24);
     this.selectBtn.Text   = "Select";
     this.selectBtn.Click += new System.EventHandler(this.OnToolStripBtnClicked);
     //
     // panBtn
     //
     this.panBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.panBtn.Image                 = global::MiniGIS.Properties.Resources.Pan;
     this.panBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.panBtn.Name   = "panBtn";
     this.panBtn.Size   = new System.Drawing.Size(24, 24);
     this.panBtn.Text   = "Pan";
     this.panBtn.Click += new System.EventHandler(this.OnToolStripBtnClicked);
     //
     // zoomInBtn
     //
     this.zoomInBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.zoomInBtn.Image                 = global::MiniGIS.Properties.Resources.ZoomIn;
     this.zoomInBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.zoomInBtn.Name   = "zoomInBtn";
     this.zoomInBtn.Size   = new System.Drawing.Size(24, 24);
     this.zoomInBtn.Text   = "ZoomIn";
     this.zoomInBtn.Click += new System.EventHandler(this.OnToolStripBtnClicked);
     //
     // zoomOutBtn
     //
     this.zoomOutBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.zoomOutBtn.Image                 = global::MiniGIS.Properties.Resources.ZoomOut;
     this.zoomOutBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.zoomOutBtn.Name   = "zoomOutBtn";
     this.zoomOutBtn.Size   = new System.Drawing.Size(24, 24);
     this.zoomOutBtn.Text   = "ZoomOut";
     this.zoomOutBtn.Click += new System.EventHandler(this.OnToolStripBtnClicked);
     //
     // entireViewBtn
     //
     this.entireViewBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.entireViewBtn.Image                 = global::MiniGIS.Properties.Resources.EntireView;
     this.entireViewBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.entireViewBtn.Name   = "entireViewBtn";
     this.entireViewBtn.Size   = new System.Drawing.Size(24, 24);
     this.entireViewBtn.Text   = "EntireView";
     this.entireViewBtn.Click += new System.EventHandler(this.entireViewBtn_Click);
     //
     // statusStrip1
     //
     this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1
     });
     this.statusStrip1.Location = new System.Drawing.Point(0, 728);
     this.statusStrip1.Name     = "statusStrip1";
     this.statusStrip1.Size     = new System.Drawing.Size(782, 25);
     this.statusStrip1.TabIndex = 2;
     this.statusStrip1.Text     = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size = new System.Drawing.Size(151, 20);
     this.toolStripStatusLabel1.Text = "toolStripStatusLabel1";
     //
     // mapControl
     //
     this.mapControl.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.mapControl.CurrentTool = MiniGIS.Tool.Select;
     this.mapControl.IsMouseDown = false;
     this.mapControl.Location    = new System.Drawing.Point(0, 30);
     geoPoint1.X = 0D;
     geoPoint1.Y = 0D;
     this.mapControl.MapCenter         = geoPoint1;
     this.mapControl.MapScale          = 1D;
     this.mapControl.MouseDownPosition = new System.Drawing.Point(0, 0);
     this.mapControl.Name       = "mapControl";
     this.mapControl.Size       = new System.Drawing.Size(782, 695);
     this.mapControl.TabIndex   = 0;
     this.mapControl.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mapControl_MouseMove);
     //
     // Form
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(782, 753);
     this.Controls.Add(this.statusStrip1);
     this.Controls.Add(this.toolStrip);
     this.Controls.Add(this.mapControl);
     this.DoubleBuffered = true;
     this.Name           = "Form";
     this.StartPosition  = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text           = "MiniGIS";
     this.Resize        += new System.EventHandler(this.Form_Resize);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #2
0
 /// <summary>
 /// Требуемый метод для поддержки конструктора — не изменяйте
 /// содержимое этого метода с помощью редактора кода.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form));
     MiniGIS.GEOPoint geoPoint1 = new MiniGIS.GEOPoint();
     this.toolStrip     = new System.Windows.Forms.ToolStrip();
     this.selectBtn     = new System.Windows.Forms.ToolStripButton();
     this.panBtn        = new System.Windows.Forms.ToolStripButton();
     this.zoomInBtn     = new System.Windows.Forms.ToolStripButton();
     this.zoomOutBtn    = new System.Windows.Forms.ToolStripButton();
     this.entireViewBtn = new System.Windows.Forms.ToolStripButton();
     this.mapControl    = new MiniGIS.Map();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // toolStrip
     //
     this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.selectBtn,
         this.panBtn,
         this.zoomInBtn,
         this.zoomOutBtn,
         this.entireViewBtn
     });
     this.toolStrip.Location = new System.Drawing.Point(0, 0);
     this.toolStrip.Name     = "toolStrip";
     this.toolStrip.Padding  = new System.Windows.Forms.Padding(0, 0, 2, 0);
     this.toolStrip.Size     = new System.Drawing.Size(1368, 27);
     this.toolStrip.TabIndex = 1;
     this.toolStrip.Text     = "toolStrip1";
     //
     // selectBtn
     //
     this.selectBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.selectBtn.Image                 = ((System.Drawing.Image)(resources.GetObject("selectBtn.Image")));
     this.selectBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.selectBtn.Name   = "selectBtn";
     this.selectBtn.Size   = new System.Drawing.Size(24, 24);
     this.selectBtn.Text   = "Select";
     this.selectBtn.Click += new System.EventHandler(this.selectBtn_Click);
     //
     // panBtn
     //
     this.panBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.panBtn.Image                 = ((System.Drawing.Image)(resources.GetObject("panBtn.Image")));
     this.panBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.panBtn.Name   = "panBtn";
     this.panBtn.Size   = new System.Drawing.Size(24, 24);
     this.panBtn.Text   = "Pan";
     this.panBtn.Click += new System.EventHandler(this.panBtn_Click);
     //
     // zoomInBtn
     //
     this.zoomInBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.zoomInBtn.Image                 = ((System.Drawing.Image)(resources.GetObject("zoomInBtn.Image")));
     this.zoomInBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.zoomInBtn.Name   = "zoomInBtn";
     this.zoomInBtn.Size   = new System.Drawing.Size(24, 24);
     this.zoomInBtn.Text   = "Zoom In";
     this.zoomInBtn.Click += new System.EventHandler(this.zoomInBtn_Click);
     //
     // zoomOutBtn
     //
     this.zoomOutBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.zoomOutBtn.Image                 = ((System.Drawing.Image)(resources.GetObject("zoomOutBtn.Image")));
     this.zoomOutBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.zoomOutBtn.Name   = "zoomOutBtn";
     this.zoomOutBtn.Size   = new System.Drawing.Size(24, 24);
     this.zoomOutBtn.Text   = "Zoom Out";
     this.zoomOutBtn.Click += new System.EventHandler(this.zoomOutBtn_Click);
     //
     // entireViewBtn
     //
     this.entireViewBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.entireViewBtn.Image                 = ((System.Drawing.Image)(resources.GetObject("entireViewBtn.Image")));
     this.entireViewBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.entireViewBtn.Name = "entireViewBtn";
     this.entireViewBtn.Size = new System.Drawing.Size(24, 24);
     this.entireViewBtn.Text = "Entire View";
     //
     // mapControl
     //
     this.mapControl.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.mapControl.Location = new System.Drawing.Point(21, 22);
     geoPoint1.X = 0D;
     geoPoint1.Y = 0D;
     this.mapControl.MapCenter = geoPoint1;
     this.mapControl.MapScale  = 1D;
     this.mapControl.Margin    = new System.Windows.Forms.Padding(9);
     this.mapControl.Name      = "mapControl";
     this.mapControl.Size      = new System.Drawing.Size(1396, 1321);
     this.mapControl.TabIndex  = 0;
     //
     // Form
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(14F, 29F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSize            = true;
     this.ClientSize          = new System.Drawing.Size(1368, 1365);
     this.Controls.Add(this.toolStrip);
     this.Controls.Add(this.mapControl);
     this.Margin        = new System.Windows.Forms.Padding(5);
     this.Name          = "Form";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "MiniGIS";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.Load         += new System.EventHandler(this.Form_Load);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }