还是直接上运行结果啦!GO!
代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace GoogleMapDownLoader
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
namespace GoogleMapDownLoader
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.txtPath = new System.Windows.Forms.TextBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.radioButton7 = new System.Windows.Forms.RadioButton();
this.radioButton6 = new System.Windows.Forms.RadioButton();
this.numThread = new System.Windows.Forms.NumericUpDown();
this.label6 = new System.Windows.Forms.Label();
this.numZoom = new System.Windows.Forms.NumericUpDown();
this.label5 = new System.Windows.Forms.Label();
this.txtsecondlat = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.txtsecondlng = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.txtfirstlat = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txtfirstlng = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.radioButton5 = new System.Windows.Forms.RadioButton();
this.radioButton4 = new System.Windows.Forms.RadioButton();
this.radioButton3 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.rchOuput = new System.Windows.Forms.RichTextBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.button2 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numThread)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numZoom)).BeginInit();
this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.groupBox5);
this.groupBox1.Controls.Add(this.groupBox4);
this.groupBox1.Controls.Add(this.groupBox3);
this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(629, 255);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "参数设置";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.button1);
this.groupBox5.Controls.Add(this.txtPath);
this.groupBox5.Location = new System.Drawing.Point(14, 192);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(595, 48);
this.groupBox5.TabIndex = 2;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "保存位置";
//
// button1
//
this.button1.Location = new System.Drawing.Point(502, 18);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 1;
this.button1.Text = "浏览";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// txtPath
//
this.txtPath.Location = new System.Drawing.Point(9, 20);
this.txtPath.Name = "txtPath";
this.txtPath.ReadOnly = true;
this.txtPath.Size = new System.Drawing.Size(490, 21);
this.txtPath.TabIndex = 0;
//
// groupBox4
//
this.groupBox4.Controls.Add(this.radioButton7);
this.groupBox4.Controls.Add(this.radioButton6);
this.groupBox4.Controls.Add(this.numThread);
this.groupBox4.Controls.Add(this.label6);
this.groupBox4.Controls.Add(this.numZoom);
this.groupBox4.Controls.Add(this.label5);
this.groupBox4.Controls.Add(this.txtsecondlat);
this.groupBox4.Controls.Add(this.label4);
this.groupBox4.Controls.Add(this.txtsecondlng);
this.groupBox4.Controls.Add(this.label3);
this.groupBox4.Controls.Add(this.txtfirstlat);
this.groupBox4.Controls.Add(this.label2);
this.groupBox4.Controls.Add(this.txtfirstlng);
this.groupBox4.Controls.Add(this.label1);
this.groupBox4.Location = new System.Drawing.Point(14, 77);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(595, 109);
this.groupBox4.TabIndex = 1;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "范围";
//
// radioButton7
//
this.radioButton7.AutoSize = true;
this.radioButton7.Location = new System.Drawing.Point(465, 79);
this.radioButton7.Name = "radioButton7";
this.radioButton7.Size = new System.Drawing.Size(83, 16);
this.radioButton7.TabIndex = 13;
this.radioButton7.TabStop = true;
this.radioButton7.Text = "国外服务器";
this.radioButton7.UseVisualStyleBackColor = true;
//
// radioButton6
//
this.radioButton6.AutoSize = true;
this.radioButton6.Checked = true;
this.radioButton6.Location = new System.Drawing.Point(465, 52);
this.radioButton6.Name = "radioButton6";
this.radioButton6.Size = new System.Drawing.Size(83, 16);
this.radioButton6.TabIndex = 12;
this.radioButton6.TabStop = true;
this.radioButton6.Text = "国内服务器";
this.radioButton6.UseVisualStyleBackColor = true;
//
// numThread
//
this.numThread.Location = new System.Drawing.Point(282, 74);
this.numThread.Maximum = new decimal(new int[] {
20,
0,
0,
0});
this.numThread.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.numThread.Name = "numThread";
this.numThread.Size = new System.Drawing.Size(99, 21);
this.numThread.TabIndex = 11;
this.numThread.Value = new decimal(new int[] {
1,
0,
0,
0});
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(223, 78);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(53, 12);
this.label6.TabIndex = 10;
this.label6.Text = "下载线程";
//
// numZoom
//
this.numZoom.Location = new System.Drawing.Point(86, 74);
this.numZoom.Maximum = new decimal(new int[] {
17,
0,
0,
0});
this.numZoom.Name = "numZoom";
this.numZoom.Size = new System.Drawing.Size(99, 21);
this.numZoom.TabIndex = 9;
this.numZoom.Value = new decimal(new int[] {
7,
0,
0,
0});
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(29, 78);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 12);
this.label5.TabIndex = 8;
this.label5.Text = "缩放级别";
//
// txtsecondlat
//
this.txtsecondlat.Location = new System.Drawing.Point(281, 47);
this.txtsecondlat.Name = "txtsecondlat";
this.txtsecondlat.Size = new System.Drawing.Size(100, 21);
this.txtsecondlat.TabIndex = 7;
this.txtsecondlat.Text = "18.812718";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(223, 51);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 6;
this.label4.Text = "右下纬度";
//
// txtsecondlng
//
this.txtsecondlng.Location = new System.Drawing.Point(281, 21);
this.txtsecondlng.Name = "txtsecondlng";
this.txtsecondlng.Size = new System.Drawing.Size(100, 21);
this.txtsecondlng.TabIndex = 5;
this.txtsecondlng.Text = "137.798767";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(223, 25);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 4;
this.label3.Text = "右下经度";
//
// txtfirstlat
//
this.txtfirstlat.Location = new System.Drawing.Point(85, 47);
this.txtfirstlat.Name = "txtfirstlat";
this.txtfirstlat.Size = new System.Drawing.Size(100, 21);
this.txtfirstlat.TabIndex = 3;
this.txtfirstlat.Text = "54.367759";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(29, 51);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 2;
this.label2.Text = "左上纬度";
//
// txtfirstlng
//
this.txtfirstlng.Location = new System.Drawing.Point(85, 21);
this.txtfirstlng.Name = "txtfirstlng";
this.txtfirstlng.Size = new System.Drawing.Size(100, 21);
this.txtfirstlng.TabIndex = 1;
this.txtfirstlng.Text = "71.792908";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(29, 25);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 0;
this.label1.Text = "左上经度";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.radioButton5);
this.groupBox3.Controls.Add(this.radioButton4);
this.groupBox3.Controls.Add(this.radioButton3);
this.groupBox3.Controls.Add(this.radioButton2);
this.groupBox3.Controls.Add(this.radioButton1);
this.groupBox3.Location = new System.Drawing.Point(14, 22);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(595, 49);
this.groupBox3.TabIndex = 0;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "类型";
//
// radioButton5
//
this.radioButton5.AutoSize = true;
this.radioButton5.Location = new System.Drawing.Point(377, 20);
this.radioButton5.Name = "radioButton5";
this.radioButton5.Size = new System.Drawing.Size(119, 16);
this.radioButton5.TabIndex = 4;
this.radioButton5.Tag = "5";
this.radioButton5.Text = "地形图(带标签)";
this.radioButton5.UseVisualStyleBackColor = true;
//
// radioButton4
//
this.radioButton4.AutoSize = true;
this.radioButton4.Location = new System.Drawing.Point(304, 20);
this.radioButton4.Name = "radioButton4";
this.radioButton4.Size = new System.Drawing.Size(59, 16);
this.radioButton4.TabIndex = 3;
this.radioButton4.Tag = "4";
this.radioButton4.Text = "地形图";
this.radioButton4.UseVisualStyleBackColor = true;
//
// radioButton3
//
this.radioButton3.AutoSize = true;
this.radioButton3.Location = new System.Drawing.Point(176, 20);
this.radioButton3.Name = "radioButton3";
this.radioButton3.Size = new System.Drawing.Size(119, 16);
this.radioButton3.TabIndex = 2;
this.radioButton3.Tag = "3";
this.radioButton3.Text = "卫星图(带标签)";
this.radioButton3.UseVisualStyleBackColor = true;
//
// radioButton2
//
this.radioButton2.AutoSize = true;
this.radioButton2.Location = new System.Drawing.Point(104, 20);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(59, 16);
this.radioButton2.TabIndex = 1;
this.radioButton2.Tag = "2";
this.radioButton2.Text = "卫星图";
this.radioButton2.UseVisualStyleBackColor = true;
//
// radioButton1
//
this.radioButton1.AutoSize = true;
this.radioButton1.Checked = true;
this.radioButton1.Location = new System.Drawing.Point(32, 20);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(59, 16);
this.radioButton1.TabIndex = 0;
this.radioButton1.TabStop = true;
this.radioButton1.Tag = "1";
this.radioButton1.Text = "路线图";
this.radioButton1.UseVisualStyleBackColor = true;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.rchOuput);
this.groupBox2.Location = new System.Drawing.Point(12, 313);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(629, 216);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "输出";
//
// rchOuput
//
this.rchOuput.BackColor = System.Drawing.Color.PapayaWhip;
this.rchOuput.Location = new System.Drawing.Point(7, 21);
this.rchOuput.Name = "rchOuput";
this.rchOuput.ReadOnly = true;
this.rchOuput.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
this.rchOuput.Size = new System.Drawing.Size(616, 189);
this.rchOuput.TabIndex = 0;
this.rchOuput.Text = "";
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Location = new System.Drawing.Point(10, 543);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(83, 12);
this.linkLabel1.TabIndex = 2;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "地图合成+浏览";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// button2
//
this.button2.Location = new System.Drawing.Point(567, 273);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 3;
this.button2.Text = "开始下载";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(654, 564);
this.Controls.Add(this.button2);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "谷歌地图下载";
this.groupBox1.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numThread)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numZoom)).EndInit();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.RichTextBox rchOuput;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.NumericUpDown numZoom;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtsecondlat;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txtsecondlng;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtfirstlat;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtfirstlng;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.RadioButton radioButton5;
private System.Windows.Forms.RadioButton radioButton4;
private System.Windows.Forms.RadioButton radioButton3;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox txtPath;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.NumericUpDown numThread;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.RadioButton radioButton6;
private System.Windows.Forms.RadioButton radioButton7;
}
}
主程序就不上啦,大家加油!