亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? formtest.cs

?? 剖面生成器
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using SuperMapLib;

namespace ProfileCtrl
{
	/// <summary>
	///主窗體
	/// </summary>
	public class FormTest : System.Windows.Forms.Form
	{		
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.ToolBarButton toolBarButton8;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.ToolBarButton toolBarButton4;
		private System.Windows.Forms.ToolBarButton toolBarButton5;
		private System.Windows.Forms.ToolBarButton toolBarButton6;
		private System.Windows.Forms.ToolBarButton toolBarButton7;
		private AxSuperMapLib.AxSuperMap axSuperMap1;
		private AxSuperMapLib.AxSuperWorkspace axSuperWorkspace1;
		private System.Windows.Forms.ToolBarButton toolBarButton9;
		private System.ComponentModel.IContainer components;

		public FormTest()
		{
			//
			// Windows 窗體設(shè)計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
			//
		}

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

		#region Windows Form Designer generated code
		/// <summary>
		/// 設(shè)計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormTest));
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton9 = new System.Windows.Forms.ToolBarButton();
			this.axSuperMap1 = new AxSuperMapLib.AxSuperMap();
			this.axSuperWorkspace1 = new AxSuperMapLib.AxSuperWorkspace();
			((System.ComponentModel.ISupportInitialize)(this.axSuperMap1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.axSuperWorkspace1)).BeginInit();
			this.SuspendLayout();
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// toolBar1
			// 
			this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.toolBarButton8,
																						this.toolBarButton1,
																						this.toolBarButton2,
																						this.toolBarButton3,
																						this.toolBarButton4,
																						this.toolBarButton5,
																						this.toolBarButton6,
																						this.toolBarButton7,
																						this.toolBarButton9});
			this.toolBar1.DropDownArrows = true;
			this.toolBar1.ImageList = this.imageList1;
			this.toolBar1.Location = new System.Drawing.Point(0, 0);
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.ShowToolTips = true;
			this.toolBar1.Size = new System.Drawing.Size(448, 41);
			this.toolBar1.TabIndex = 3;
			this.toolBar1.Wrappable = false;
			this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
			// 
			// toolBarButton8
			// 
			this.toolBarButton8.ImageIndex = 7;
			this.toolBarButton8.Text = "自動";
			this.toolBarButton8.ToolTipText = "生成概化剖面圖";
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.ImageIndex = 0;
			this.toolBarButton1.Text = "手工";
			this.toolBarButton1.ToolTipText = "手工繪制生成剖面圖";
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.ImageIndex = 1;
			this.toolBarButton2.Text = "放大";
			// 
			// toolBarButton3
			// 
			this.toolBarButton3.ImageIndex = 2;
			this.toolBarButton3.Text = "縮小";
			// 
			// toolBarButton4
			// 
			this.toolBarButton4.ImageIndex = 3;
			this.toolBarButton4.Text = "自由";
			// 
			// toolBarButton5
			// 
			this.toolBarButton5.ImageIndex = 4;
			this.toolBarButton5.Text = "漫游";
			// 
			// toolBarButton6
			// 
			this.toolBarButton6.ImageIndex = 5;
			this.toolBarButton6.Text = "全圖";
			// 
			// toolBarButton7
			// 
			this.toolBarButton7.ImageIndex = 6;
			this.toolBarButton7.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
			this.toolBarButton7.Text = "屬性";
			// 
			// toolBarButton9
			// 
			this.toolBarButton9.Text = "模型";
			this.toolBarButton9.ToolTipText = "讀取對比模型";
			// 
			// axSuperMap1
			// 
			this.axSuperMap1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.axSuperMap1.Enabled = true;
			this.axSuperMap1.Location = new System.Drawing.Point(0, 41);
			this.axSuperMap1.Name = "axSuperMap1";
			this.axSuperMap1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSuperMap1.OcxState")));
			this.axSuperMap1.Size = new System.Drawing.Size(448, 276);
			this.axSuperMap1.TabIndex = 4;
			this.axSuperMap1.GeometrySelected += new AxSuperMapLib._DSuperMapEvents_GeometrySelectedEventHandler(this.axSuperMap1_GeometrySelected);
			// 
			// axSuperWorkspace1
			// 
			this.axSuperWorkspace1.Enabled = true;
			this.axSuperWorkspace1.Location = new System.Drawing.Point(200, 128);
			this.axSuperWorkspace1.Name = "axSuperWorkspace1";
			this.axSuperWorkspace1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSuperWorkspace1.OcxState")));
			this.axSuperWorkspace1.Size = new System.Drawing.Size(32, 32);
			this.axSuperWorkspace1.TabIndex = 5;
			// 
			// FormTest
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(448, 317);
			this.Controls.Add(this.axSuperWorkspace1);
			this.Controls.Add(this.axSuperMap1);
			this.Controls.Add(this.toolBar1);
			this.Name = "FormTest";
			this.Text = "測試窗體";
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.Closing += new System.ComponentModel.CancelEventHandler(this.FormTest_Closing);
			this.Load += new System.EventHandler(this.FormTest_Load);
			((System.ComponentModel.ISupportInitialize)(this.axSuperMap1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.axSuperWorkspace1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

//		/// <summary>
//		/// 應(yīng)用程序的主入口點(diǎn)。
//		/// </summary>
//		[STAThread]
//		static void Main() 
//		{
//			Application.Run(new FormTest());
//		}

		private void FormTest_Load(object sender, System.EventArgs e)
		{
			//建立SuperWorkspace 與SuperMap之間的聯(lián)系

			this.axSuperMap1.Connect (this.axSuperWorkspace1.CtlHandle);
//			axSuperMap1.Dock = DockStyle.Fill;
			axSuperMap1.BorderStyle = 1;	 //固定單個邊框			
			axSuperMap1.Appearance = 1;	//三維窗口效果
			SuperMapLib.soFillStyleLib objFill = axSuperWorkspace1.Resources.FillStyleLib;
			objFill.RemoveAll();
			objFill.Import("Gwater.bru",true);


			//在Visual Studio.NET中,Handle是系統(tǒng)屬性名,因此SuperWorkspace原有的Handle屬性被更名為CtlHandle

 			SuperMapLib.soDataSource objDs; //數(shù)據(jù)源對象,指向打開的數(shù)據(jù)源

			SuperMapLib.soDatasets objDts;

			objDs=this.axSuperWorkspace1.OpenDataSource("zkfbt.sdb","zkfbt",SuperMapLib.seEngineType.sceSDB,true);
			
			if(objDs != null)

			{

				objDts=objDs.Datasets;

				this.axSuperMap1.Layers.AddDataset (objDts[1],true);

				this.axSuperMap1.CtlRefresh();

				objDs=null;

				objDts=null;

			}

			axSuperMap1.Action = seAction.scaSelect;
		}

		private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			switch(e.Button.Text)
			{
				case "自動":
					DrawProfile(true);
					break;
				case "模型":
//					ProfileCtrl.LoadPlug loadPlug=new ProfileCtrl.LoadPlug (@"E:\程序\程序vsnet70\newprofilectrl\plugs\");
//					loadPlug.ShowDialog();
					break;
				default:					
					break;
			}
		}

		private void DrawProfile(bool isSum)
		{
			int intZKCount = axSuperMap1.selection.Count;
			if(intZKCount<2)
			{
				MessageBox.Show("生成剖面圖到少需要選擇兩個鉆孔!");
				return;
			}
			soRecordset objRecordset = axSuperMap1.selection.ToRecordset(false);			
			ArrayList arrListZK = new ArrayList();			
			for(int i=1;i<=intZKCount;i++)
			{	
				objRecordset.SeekID(axSuperMap1.selection[i]);				
				arrListZK.Add(objRecordset.GetFieldValue("統(tǒng)一編號"));
			}	
			ProfileCtrl.Profile proflie = new ProfileCtrl.Profile();
			proflie.ShowInTaskbar = false;
			proflie.SuperWorkspace = this.axSuperWorkspace1;
			proflie.WindowState = FormWindowState.Maximized;
			proflie.ArrList = arrListZK;
			proflie.IsSum = isSum;
			if(proflie.DrawProfile())
			{
				proflie.ShowDialog(this);
			}
			proflie.Dispose();
		}

		private void axSuperMap1_GeometrySelected(object sender, AxSuperMapLib._DSuperMapEvents_GeometrySelectedEvent e)
		{
			if(!this.toolBarButton7.Pushed) return;	//屬性按鈕沒有按下,退出

			SuperMapLib.soSelection objSelection;

			SuperMapLib.soRecordset objRd;

			objSelection=this.axSuperMap1.selection;

			objRd=objSelection.ToRecordset(false); //提取所選對象的屬性數(shù)據(jù)

			string str="";

			for (int i=1 ;i<=objRd.FieldCount;i++)

			{

				str+=objRd.GetFieldInfo(i).Name ; //得到屬性名

				str+=":"+objRd.GetFieldValue(i).ToString()+"\n"; //得到屬性值


			}

			MessageBox.Show(str,"查找的紀(jì)錄為:");

			objSelection=null;

			objRd=null;
		}

		private void FormTest_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			this.axSuperMap1.Close();

			this.axSuperMap1.Disconnect();

			this.axSuperWorkspace1.Close();
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久国产午夜精品| 亚洲婷婷国产精品电影人久久| 日韩欧美另类在线| 久久婷婷国产综合国色天香| 国产精品毛片大码女人| 亚洲人xxxx| 偷拍日韩校园综合在线| 黄色日韩三级电影| 97aⅴ精品视频一二三区| 欧美日韩一区二区三区视频| 日韩精品一区二区三区视频播放 | 自拍偷拍欧美激情| 亚洲成人在线免费| 国产精品1区二区.| 日本韩国一区二区三区视频| 日韩欧美国产综合在线一区二区三区| 久久久精品一品道一区| 综合激情成人伊人| 裸体健美xxxx欧美裸体表演| 成人国产精品视频| 色综合色综合色综合色综合色综合 | 国产成人免费在线观看不卡| 色成人在线视频| 精品国产一区二区三区久久影院 | 欧美性三三影院| 久久欧美中文字幕| 亚洲影院理伦片| 国产一区二区三区不卡在线观看| 色av成人天堂桃色av| 欧美精品一区二区三区视频| 亚洲精品午夜久久久| 看片的网站亚洲| 日本乱码高清不卡字幕| 26uuu另类欧美亚洲曰本| 亚洲影视在线播放| 高清beeg欧美| 精品国产1区2区3区| 亚洲影视在线播放| 成人性生交大片免费看中文| 欧美精品视频www在线观看| 国产精品网站在线观看| 另类小说一区二区三区| 欧洲精品一区二区| 国产精品美日韩| 久久99国产精品久久99| 欧美乱妇23p| 一区二区三区四区蜜桃| 福利视频网站一区二区三区| 日韩片之四级片| 亚洲电影你懂得| 色老汉av一区二区三区| 国产精品美女视频| 国产乱码精品一区二区三区忘忧草| 欧美剧在线免费观看网站| 亚洲色图视频网| eeuss鲁片一区二区三区 | 国产一级精品在线| 在线成人小视频| 亚洲在线中文字幕| 91日韩精品一区| 中文字幕不卡在线观看| 国产在线国偷精品免费看| 日韩一级成人av| 日本成人在线网站| 欧美色欧美亚洲另类二区| 中文字幕日韩一区| bt欧美亚洲午夜电影天堂| 日本一区二区三区四区在线视频| 久99久精品视频免费观看| 日韩一本二本av| 免费成人在线影院| 日韩视频不卡中文| 热久久国产精品| 欧美一区二区福利在线| 日韩**一区毛片| 91精品国产一区二区| 日韩中文字幕亚洲一区二区va在线| 欧美在线观看一区二区| 亚洲激情av在线| 欧美性猛片aaaaaaa做受| 亚洲精品视频在线观看网站| 26uuu亚洲综合色| 国产精品资源在线看| 精品99999| 老司机免费视频一区二区| 欧美大片一区二区| 韩国av一区二区| 国产日韩欧美综合一区| 成人avav影音| 亚洲激情成人在线| 欧美午夜影院一区| 日韩av一区二| 精品国偷自产国产一区| 精品写真视频在线观看| 中文字幕第一区二区| 91首页免费视频| 亚洲国产欧美在线| 日韩欧美中文一区二区| 国产乱子伦视频一区二区三区 | 高清不卡一二三区| 18欧美亚洲精品| 欧美自拍偷拍一区| 日日骚欧美日韩| 精品成人私密视频| 不卡av电影在线播放| 亚洲一区二区三区不卡国产欧美| 69av一区二区三区| 国产一区啦啦啦在线观看| 国产精品欧美久久久久无广告 | 一区二区成人在线| 欧美一级黄色录像| 成人一级片网址| 亚洲成a人片在线观看中文| 精品国产免费视频| 色综合咪咪久久| 久久丁香综合五月国产三级网站| 国产精品区一区二区三区| 欧美色成人综合| 国产盗摄女厕一区二区三区| 亚洲精品ww久久久久久p站 | 国产成人免费9x9x人网站视频| 亚洲蜜臀av乱码久久精品| 日韩精品一区在线| 色婷婷综合久久久中文字幕| 日韩**一区毛片| 亚洲色图色小说| 久久综合九色综合欧美亚洲| 在线观看亚洲精品视频| 国产综合色在线| 一区二区三区高清在线| 欧美亚日韩国产aⅴ精品中极品| 视频一区二区中文字幕| 亚洲精品在线免费播放| 亚洲亚洲精品在线观看| 精品少妇一区二区| 91麻豆国产自产在线观看| 亚洲观看高清完整版在线观看| 久久久久久久综合狠狠综合| 欧美一级精品在线| 91视视频在线观看入口直接观看www | 亚洲大尺度视频在线观看| 7777精品伊人久久久大香线蕉超级流畅 | 91蜜桃视频在线| 精品亚洲免费视频| 久久久久久一级片| 亚洲成人777| 日韩精品一区二区三区四区视频| 美女mm1313爽爽久久久蜜臀| 中文一区二区在线观看| 一本色道久久加勒比精品 | 国产一区二区女| 中文在线免费一区三区高中清不卡| 欧美一卡二卡三卡| 国产精品资源网| 久久精品99国产精品| 国产午夜三级一区二区三| 久久精品国产成人一区二区三区| 亚洲一区视频在线观看视频| 欧美一级欧美三级| 欧美男同性恋视频网站| 美日韩黄色大片| 婷婷中文字幕一区三区| 久久久久久99久久久精品网站| 日韩欧美高清在线| 国产91精品在线观看| 国产色产综合色产在线视频| 一本久久综合亚洲鲁鲁五月天 | 色哟哟在线观看一区二区三区| 国产精品综合一区二区| 一区二区三区蜜桃| 亚洲欧洲日韩在线| 欧美男男青年gay1069videost| 91麻豆自制传媒国产之光| 日韩精品1区2区3区| 久久香蕉国产线看观看99| 97久久精品人人做人人爽| 国产蜜臀97一区二区三区 | 欧美精品粉嫩高潮一区二区| 久久精品二区亚洲w码| 一区二区国产盗摄色噜噜| 国产午夜精品理论片a级大结局| 成人免费视频免费观看| 国产a久久麻豆| 亚洲成人在线免费| 日韩主播视频在线| 国产精品国产成人国产三级| 国产精品高清亚洲| 日韩丝袜美女视频| 精品剧情在线观看| 欧美日韩视频在线观看一区二区三区| 91色婷婷久久久久合中文| 国产精选一区二区三区| 国产精品一区二区91| 免费在线看一区| 中文在线资源观看网站视频免费不卡| 国产精品无遮挡| 欧美在线观看一二区| 91麻豆精品国产91久久久久久| 午夜精品一区在线观看| 日本不卡高清视频|