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

📄 mainfrm.cs

📁 当司机在一个地方没有油时
💻 CS
📖 第 1 页 / 共 5 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using SuperMapLib;
using System.IO;
using System.Text;


namespace companydb
{
	/// <summary>
	/// mainfrm 的摘要说明。
	/// </summary>
	public class mainfrm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.GroupBox groupBox3;
		private int a=0,key=0;
		private AxSuperMapLib.AxSuperMap SuperMap1;		
		private AxSuperLegendLib.AxSuperLegend SuperLegend1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.ContextMenu contextMenu1;
		private System.Windows.Forms.GroupBox groupBox5;
		private System.Windows.Forms.MenuItem menuItem10;
		private System.Windows.Forms.MenuItem menuItem11;
		private System.Windows.Forms.MenuItem menuItem12;
		private System.Windows.Forms.GroupBox groupBox6;
		private AxSuperMapLib.AxSuperMap SuperMap2;
		private System.Windows.Forms.Button button6;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.GroupBox groupBox7;
		private System.Windows.Forms.ListView listView1;
		private AxSuperAnalystLib.AxSuperAnalyst axSuperAnalyst1;
		private System.Windows.Forms.Panel panel5;
		private System.Windows.Forms.ImageList imageList2;
		private System.Windows.Forms.Button button5;
		private System.Windows.Forms.Panel panel6;
		private System.Windows.Forms.Button button7;
		private AxSuperWkspManagerLib.AxSuperWkspManager SuperWkspManager1;
		private System.Windows.Forms.MenuItem zoomout_menu;
		private System.Windows.Forms.MenuItem zoomin_menu;
		private System.Windows.Forms.MenuItem zoomfree_menu;
		private System.Windows.Forms.MenuItem entirmap_menu;
		private System.Windows.Forms.MenuItem scapan_menu;
		private System.Windows.Forms.MenuItem scaSelect_menu;
		private System.Windows.Forms.MenuItem refresh_menu;
		private System.Windows.Forms.MenuItem sql_menu;
		private System.Windows.Forms.Button datafrm;
		private System.Windows.Forms.Button layout;
		private layout layoutfrm;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.ToolTip toolTip1;
		private System.Windows.Forms.ContextMenu contextMenu2;
		private System.Windows.Forms.MenuItem identify_check;
		private System.Windows.Forms.MenuItem eagleeye_check;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.MenuItem controlbar_check;
		private System.Windows.Forms.ImageList imageList3;
		private System.Windows.Forms.Panel eaglemap;
		private System.Windows.Forms.Panel identify;
		private System.Windows.Forms.Button measure_t;
		private System.Windows.Forms.Button identify_t;
		private System.Windows.Forms.Button showeaglemap_t;
		private System.Windows.Forms.Button pan_t;
		private System.Windows.Forms.Button entiremap_t;
		private System.Windows.Forms.Button zoomout_t;
		private System.Windows.Forms.Button zoomin_t;
		private System.Windows.Forms.Panel measure_wnd;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.GroupBox groupBox4;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.TextBox DLdistance;
		private System.Windows.Forms.TextBox Alldistance;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.TextBox Area;
		private System.Windows.Forms.MenuItem measure_check;
		private System.Windows.Forms.ComboBox selelayer;
		
		private SuperMapLib.soDataSource objDataSource; //数据源对象,指向打开的数据源
		private SuperMapLib.soDatasetVector objDv;
		private SuperMapLib.soDatasets objDts;	//
		private SuperMapLib.soDataset objDt;	//
		private SuperMapLib.soRecordset objRec; //数据源记录

		private System.Windows.Forms.Button selelay_disp;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Panel gridview_wnd;
		private System.Windows.Forms.GroupBox groupBox8;
		private AxSuperGridViewLib.AxSuperGridView SuperGridView1;
		public  AxSuperMapLib.AxSuperWorkspace axSuperWorkspace1;
		private System.Windows.Forms.Button exit;
		private System.Windows.Forms.GroupBox groupBox9;
		private System.Windows.Forms.Button clearall;
		private System.Windows.Forms.Button net_road;
		private System.Windows.Forms.Panel netAnalyst;
		private System.Windows.Forms.Label label15;

		private SuperMapLib.soStrings objStrings = null;	//soDatasetVector.Query的这个参数在这里不能省略
		public  SuperMapLib.soRecordset  Rs;

		private System.Windows.Forms.MenuItem zoomfree;
		private System.Windows.Forms.MenuItem rectsele;
		private System.Windows.Forms.MenuItem regionsele;
		private System.Windows.Forms.CheckBox checkBox1;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.TextBox mohusele;
		private System.Windows.Forms.GroupBox groupBox11;
		private System.Windows.Forms.Button morefunction;
		private System.Windows.Forms.Button network;
		private System.Windows.Forms.ComboBox cmbend;
		private System.Windows.Forms.ComboBox cmbstart;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Label label19;
		private System.Windows.Forms.Label label22;
		private System.Windows.Forms.Label label20;
		private System.Windows.Forms.MenuItem menu_PointSelect;
		private System.Windows.Forms.Label label24;
		private System.Windows.Forms.ComboBox cmbcartype;
		private System.Windows.Forms.GroupBox groupBox10;
		private System.Windows.Forms.TextBox txtoil;
		private System.Windows.Forms.Label label25;
		private System.Windows.Forms.RadioButton radiomapsel;
		private System.Windows.Forms.RadioButton radiocmbsel;
		private System.Windows.Forms.ComboBox cmbaddoil;
		private System.Windows.Forms.TextBox txtinfo;
		private System.Windows.Forms.MenuItem net_config;
		private System.Windows.Forms.MenuItem about;
		private System.Windows.Forms.MenuItem menuItem7;
		private System.Windows.Forms.Timer timer1;
		public  SuperMapLib.soPoints  objpoints;

		private System.Windows.Forms.Button bt_oil;
		
		private double oilrate;//记录油耗
		private double oil;//记录油量
		private SuperMapLib.soGeoPoint  objbroken;//出事地点(加油,爆胎的地点)
		
		private SuperMapLib.soGeoPoint objhelpPoint=new SuperMapLib .soGeoPointClass ();//处理地点
		private SuperMapLib.soDataSources objDatasources;//数据源集
		private SuperMapLib.soDatasetVector datasetVt;//定义一个矢量集
		private SuperMapLib.soSelection objSelection;//定义一个选择集
		private SuperMapLib.soGeoLineM objGeoLineM=new soGeoLineM();//路线               
		private SuperMapLib.soStyle objStyle=new SuperMapLib .soStyleClass ();
		private System.Windows.Forms.Button btnguzhang;
		private System.Windows.Forms.Button bt_SetNodes;
		private System.Windows.Forms.Button bt_CatchCrimer;
		private System.Windows.Forms.Panel pl_CatchCrimer;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.GroupBox groupBox13;
		private System.Windows.Forms.Label label26;
		private System.Windows.Forms.Label label27;
		private System.Windows.Forms.TextBox tb_CatchCrimer;
		private System.Windows.Forms.Button bt_Analyst;
		private System.Windows.Forms.Button bt_Close;
		private System.Windows.Forms.Label label28;
		private System.Windows.Forms.Timer tm_CatchCrimer;
		private System.Windows.Forms.Panel pl_SetNodes;
		private System.Windows.Forms.Label label23;
		private System.Windows.Forms.Button bt_OK;
		private System.Windows.Forms.Label label29;
		private System.Windows.Forms.Label label30;//风格                                      
		private int blinkcount = 0;
		private System.Windows.Forms.Button bt_Cansel;
		private System.Windows.Forms.Panel panel3;
		private System.Windows.Forms.Button btnzuzhangcancel;
		private System.Windows.Forms.Button btnguzhangok;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.GroupBox groupBox12;
		private System.Windows.Forms.ComboBox cmbguzhang;
		private System.Windows.Forms.RadioButton radioguzhangmap;
		private System.Windows.Forms.RadioButton radioguzhangbox;
		private System.Windows.Forms.MenuItem help;//用于闪烁的计数器 另外增加一个timer并设间隙为500            
		private SuperMapLib.soLongArray objLongArray = new SuperMapLib.soLongArrayClass();//障碍点
		public mainfrm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		#region 版权说明
		  
		//本程序由江西理工大学地理信息系统  GIS-boys制作 
		
		#endregion  
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(mainfrm));
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.net_config = new System.Windows.Forms.MenuItem();
			this.menuItem7 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.menu_PointSelect = new System.Windows.Forms.MenuItem();
			this.rectsele = new System.Windows.Forms.MenuItem();
			this.regionsele = new System.Windows.Forms.MenuItem();
			this.zoomfree = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.help = new System.Windows.Forms.MenuItem();
			this.about = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.panel1 = new System.Windows.Forms.Panel();
			this.contextMenu2 = new System.Windows.Forms.ContextMenu();
			this.identify_check = new System.Windows.Forms.MenuItem();
			this.eagleeye_check = new System.Windows.Forms.MenuItem();
			this.controlbar_check = new System.Windows.Forms.MenuItem();
			this.measure_check = new System.Windows.Forms.MenuItem();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.bt_SetNodes = new System.Windows.Forms.Button();
			this.groupBox9 = new System.Windows.Forms.GroupBox();
			this.exit = new System.Windows.Forms.Button();
			this.button6 = new System.Windows.Forms.Button();
			this.net_road = new System.Windows.Forms.Button();
			this.bt_CatchCrimer = new System.Windows.Forms.Button();
			this.datafrm = new System.Windows.Forms.Button();
			this.layout = new System.Windows.Forms.Button();
			this.btnguzhang = new System.Windows.Forms.Button();
			this.panel2 = new System.Windows.Forms.Panel();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.axSuperWorkspace1 = new AxSuperMapLib.AxSuperWorkspace();
			this.SuperWkspManager1 = new AxSuperWkspManagerLib.AxSuperWkspManager();
			this.panel6 = new System.Windows.Forms.Panel();
			this.button7 = new System.Windows.Forms.Button();
			this.button5 = new System.Windows.Forms.Button();
			this.SuperLegend1 = new AxSuperLegendLib.AxSuperLegend();
			this.SuperMap1 = new AxSuperMapLib.AxSuperMap();
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.zoomout_menu = new System.Windows.Forms.MenuItem();
			this.zoomin_menu = new System.Windows.Forms.MenuItem();
			this.zoomfree_menu = new System.Windows.Forms.MenuItem();
			this.menuItem10 = new System.Windows.Forms.MenuItem();
			this.entirmap_menu = new System.Windows.Forms.MenuItem();
			this.scapan_menu = new System.Windows.Forms.MenuItem();
			this.scaSelect_menu = new System.Windows.Forms.MenuItem();

⌨️ 快捷键说明

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