⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.cs

📁 GpRS与语音配合的 mobile程序 可以语音搜索GPRS的定位位置
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
using SmartDeviceMap.Map;
using System.Net;

namespace SmartDeviceMap
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tabPage2;
		private System.Windows.Forms.Button btnFind;
		private System.Windows.Forms.PictureBox pbMap;
		private System.Windows.Forms.TabControl tcMap;
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.TabPage tabPage3;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox txtAddress;
		private System.Windows.Forms.TextBox txtCity;
		private System.Windows.Forms.Button btnZoomIn;
		private System.Windows.Forms.Button btnZoomOut;
		private System.Windows.Forms.Button btnRoute;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox txtStartPostCode;
		private System.Windows.Forms.TextBox txtStartCity;
		private System.Windows.Forms.TextBox txtStartAddress;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.TextBox txtEndPostCode;
		private System.Windows.Forms.TextBox txtEndCity;
		private System.Windows.Forms.TextBox txtEndAddress;
		private System.Windows.Forms.TabPage tabPage4;
		private System.Windows.Forms.PictureBox pbRouteMap;
		private System.Windows.Forms.Button btnMovePrevious;
		private System.Windows.Forms.Button btnMoveNext;
		private System.Windows.Forms.TextBox txtPostCode;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}
	
		protected override void Dispose( bool disposing )
		{
			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.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.tcMap = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.txtPostCode = new System.Windows.Forms.TextBox();
			this.txtCity = new System.Windows.Forms.TextBox();
			this.txtAddress = new System.Windows.Forms.TextBox();
			this.btnFind = new System.Windows.Forms.Button();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.btnZoomOut = new System.Windows.Forms.Button();
			this.btnZoomIn = new System.Windows.Forms.Button();
			this.pbMap = new System.Windows.Forms.PictureBox();
			this.tabPage3 = new System.Windows.Forms.TabPage();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.txtEndPostCode = new System.Windows.Forms.TextBox();
			this.txtEndCity = new System.Windows.Forms.TextBox();
			this.txtEndAddress = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.txtStartPostCode = new System.Windows.Forms.TextBox();
			this.txtStartCity = new System.Windows.Forms.TextBox();
			this.txtStartAddress = new System.Windows.Forms.TextBox();
			this.btnRoute = new System.Windows.Forms.Button();
			this.tabPage4 = new System.Windows.Forms.TabPage();
			this.btnMoveNext = new System.Windows.Forms.Button();
			this.btnMovePrevious = new System.Windows.Forms.Button();
			this.pbRouteMap = new System.Windows.Forms.PictureBox();
			// 
			// tcMap
			// 
			this.tcMap.Controls.Add(this.tabPage1);
			this.tcMap.Controls.Add(this.tabPage2);
			this.tcMap.Controls.Add(this.tabPage3);
			this.tcMap.Controls.Add(this.tabPage4);
			this.tcMap.SelectedIndex = 0;
			this.tcMap.Size = new System.Drawing.Size(240, 248);
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.label3);
			this.tabPage1.Controls.Add(this.label2);
			this.tabPage1.Controls.Add(this.label1);
			this.tabPage1.Controls.Add(this.txtPostCode);
			this.tabPage1.Controls.Add(this.txtCity);
			this.tabPage1.Controls.Add(this.txtAddress);
			this.tabPage1.Controls.Add(this.btnFind);
			this.tabPage1.Location = new System.Drawing.Point(4, 4);
			this.tabPage1.Size = new System.Drawing.Size(232, 222);
			this.tabPage1.Text = "Find";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(10, 84);
			this.label3.Size = new System.Drawing.Size(56, 20);
			this.label3.Text = "City";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(10, 108);
			this.label2.Size = new System.Drawing.Size(64, 20);
			this.label2.Text = "Post Code";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(10, 60);
			this.label1.Size = new System.Drawing.Size(56, 20);
			this.label1.Text = "Address";
			// 
			// txtPostCode
			// 
			this.txtPostCode.Location = new System.Drawing.Point(90, 108);
			this.txtPostCode.Text = "L1 4JR";
			// 
			// txtCity
			// 
			this.txtCity.Location = new System.Drawing.Point(90, 84);
			this.txtCity.Text = "Liverpool";
			// 
			// txtAddress
			// 
			this.txtAddress.Location = new System.Drawing.Point(90, 60);
			this.txtAddress.Size = new System.Drawing.Size(128, 20);
			this.txtAddress.Text = "157 Duke Street";
			// 
			// btnFind
			// 
			this.btnFind.Location = new System.Drawing.Point(72, 152);
			this.btnFind.Text = "Find Map";
			this.btnFind.Click += new System.EventHandler(this.btnFind_Click);
			// 
			// tabPage2
			// 
			this.tabPage2.Controls.Add(this.btnZoomOut);
			this.tabPage2.Controls.Add(this.btnZoomIn);
			this.tabPage2.Controls.Add(this.pbMap);
			this.tabPage2.Location = new System.Drawing.Point(4, 4);
			this.tabPage2.Size = new System.Drawing.Size(232, 222);
			this.tabPage2.Text = "Find Map";
			// 
			// btnZoomOut
			// 
			this.btnZoomOut.Location = new System.Drawing.Point(120, 200);
			this.btnZoomOut.Size = new System.Drawing.Size(64, 20);
			this.btnZoomOut.Text = "Zoom Out";
			this.btnZoomOut.Click += new System.EventHandler(this.btnZoomOut_Click);
			// 
			// btnZoomIn
			// 
			this.btnZoomIn.Location = new System.Drawing.Point(48, 200);
			this.btnZoomIn.Size = new System.Drawing.Size(64, 20);
			this.btnZoomIn.Text = "Zoom In";
			this.btnZoomIn.Click += new System.EventHandler(this.btnZoomIn_Click);
			// 
			// pbMap
			// 
			this.pbMap.Location = new System.Drawing.Point(8, 0);
			this.pbMap.Size = new System.Drawing.Size(216, 192);
			// 
			// tabPage3
			// 
			this.tabPage3.Controls.Add(this.label7);
			this.tabPage3.Controls.Add(this.label8);
			this.tabPage3.Controls.Add(this.label9);
			this.tabPage3.Controls.Add(this.txtEndPostCode);
			this.tabPage3.Controls.Add(this.txtEndCity);
			this.tabPage3.Controls.Add(this.txtEndAddress);
			this.tabPage3.Controls.Add(this.label4);
			this.tabPage3.Controls.Add(this.label5);
			this.tabPage3.Controls.Add(this.label6);
			this.tabPage3.Controls.Add(this.txtStartPostCode);
			this.tabPage3.Controls.Add(this.txtStartCity);
			this.tabPage3.Controls.Add(this.txtStartAddress);
			this.tabPage3.Controls.Add(this.btnRoute);
			this.tabPage3.Location = new System.Drawing.Point(4, 4);
			this.tabPage3.Size = new System.Drawing.Size(232, 222);
			this.tabPage3.Text = "Route";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(16, 128);
			this.label7.Size = new System.Drawing.Size(56, 20);
			this.label7.Text = "City";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(16, 152);
			this.label8.Size = new System.Drawing.Size(64, 20);
			this.label8.Text = "Post Code";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(16, 104);
			this.label9.Size = new System.Drawing.Size(56, 20);
			this.label9.Text = "Address";
			// 
			// txtEndPostCode
			// 
			this.txtEndPostCode.Location = new System.Drawing.Point(96, 152);
			this.txtEndPostCode.Text = "L8 8HU";
			// 
			// txtEndCity
			// 
			this.txtEndCity.Location = new System.Drawing.Point(96, 128);
			this.txtEndCity.Text = "Liverpool";
			// 
			// txtEndAddress
			// 
			this.txtEndAddress.Location = new System.Drawing.Point(96, 104);
			this.txtEndAddress.Size = new System.Drawing.Size(128, 20);
			this.txtEndAddress.Text = "39 Elain Street";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(16, 40);
			this.label4.Size = new System.Drawing.Size(56, 20);
			this.label4.Text = "City";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(16, 64);
			this.label5.Size = new System.Drawing.Size(64, 20);
			this.label5.Text = "Post Code";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(16, 16);
			this.label6.Size = new System.Drawing.Size(56, 20);
			this.label6.Text = "Address";
			// 
			// txtStartPostCode
			// 
			this.txtStartPostCode.Location = new System.Drawing.Point(96, 64);
			this.txtStartPostCode.Text = "L1 4JR";
			// 
			// txtStartCity
			// 
			this.txtStartCity.Location = new System.Drawing.Point(96, 40);
			this.txtStartCity.Text = "Liverpool";
			// 
			// txtStartAddress
			// 
			this.txtStartAddress.Location = new System.Drawing.Point(96, 16);
			this.txtStartAddress.Size = new System.Drawing.Size(128, 20);
			this.txtStartAddress.Text = "157 Duke Street";
			// 
			// btnRoute
			// 
			this.btnRoute.Location = new System.Drawing.Point(72, 184);
			this.btnRoute.Text = "Find Route";
			this.btnRoute.Click += new System.EventHandler(this.btnRoute_Click);
			// 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -