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

📄 main.cs

📁 海底光测网模拟数据传输
💻 CS
📖 第 1 页 / 共 3 页
字号:
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 3;
			this.menuItem5.Text = "质量控制";
			this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
			// 
			// menuItem6
			// 
			this.menuItem6.Index = 4;
			this.menuItem6.Text = "数据分析";
			this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
			// 
			// menuItem7
			// 
			this.menuItem7.Index = 8;
			this.menuItem7.Text = "格式转换";
			this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
			// 
			// menuItem8
			// 
			this.menuItem8.Index = 5;
			this.menuItem8.Text = "日志管理";
			this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click);
			// 
			// menuItem9
			// 
			this.menuItem9.Index = 6;
			this.menuItem9.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem27,
																					  this.menuItem30,
																					  this.menuItem32});
			this.menuItem9.Text = "系统管理";
			this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
			// 
			// menuItem27
			// 
			this.menuItem27.Index = 0;
			this.menuItem27.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem28,
																					   this.menuItem29});
			this.menuItem27.Text = "结点管理";
			this.menuItem27.Click += new System.EventHandler(this.menuItem27_Click);
			// 
			// menuItem28
			// 
			this.menuItem28.Index = 0;
			this.menuItem28.Text = "结点信息查询";
			this.menuItem28.Click += new System.EventHandler(this.menuItem28_Click);
			// 
			// menuItem29
			// 
			this.menuItem29.Index = 1;
			this.menuItem29.Text = "结点添加";
			this.menuItem29.Click += new System.EventHandler(this.menuItem29_Click);
			// 
			// menuItem30
			// 
			this.menuItem30.Index = 1;
			this.menuItem30.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem31,
																					   this.menuItem34});
			this.menuItem30.Text = "子系统管理";
			this.menuItem30.Click += new System.EventHandler(this.menuItem30_Click);
			// 
			// menuItem31
			// 
			this.menuItem31.Index = 0;
			this.menuItem31.Text = "子系统信息查询";
			this.menuItem31.Click += new System.EventHandler(this.menuItem31_Click);
			// 
			// menuItem34
			// 
			this.menuItem34.Index = 1;
			this.menuItem34.Text = "子系统添加";
			this.menuItem34.Click += new System.EventHandler(this.menuItem34_Click);
			// 
			// menuItem32
			// 
			this.menuItem32.Index = 2;
			this.menuItem32.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem33,
																					   this.menuItem35});
			this.menuItem32.Text = "传感器管理";
			this.menuItem32.Click += new System.EventHandler(this.menuItem32_Click);
			// 
			// menuItem33
			// 
			this.menuItem33.Index = 0;
			this.menuItem33.Text = "传感器信息查询";
			this.menuItem33.Click += new System.EventHandler(this.menuItem33_Click);
			// 
			// menuItem35
			// 
			this.menuItem35.Index = 1;
			this.menuItem35.Text = "传感器添加";
			this.menuItem35.Click += new System.EventHandler(this.menuItem35_Click);
			// 
			// menuItem10
			// 
			this.menuItem10.Index = 9;
			this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem11,
																					   this.menuItem12});
			this.menuItem10.Text = "帮助";
			this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click);
			// 
			// menuItem11
			// 
			this.menuItem11.Index = 0;
			this.menuItem11.Text = "联机帮助";
			this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
			// 
			// menuItem12
			// 
			this.menuItem12.Index = 1;
			this.menuItem12.Text = "关于";
			this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
			// 
			// toolBar1
			// 
			this.toolBar1.AutoSize = false;
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.ZoomIn,
																						this.ZoomOut,
																						this.FullExtent,
																						this.FreeZoom,
																						this.Refresh,
																						this.Pan,
																						this.Layers});
			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(936, 32);
			this.toolBar1.TabIndex = 5;
			// 
			// ZoomIn
			// 
			this.ZoomIn.ImageIndex = 0;
			// 
			// ZoomOut
			// 
			this.ZoomOut.ImageIndex = 1;
			// 
			// FullExtent
			// 
			this.FullExtent.ImageIndex = 2;
			// 
			// FreeZoom
			// 
			this.FreeZoom.ImageIndex = 4;
			// 
			// Refresh
			// 
			this.Refresh.ImageIndex = 6;
			// 
			// Pan
			// 
			this.Pan.ImageIndex = 5;
			// 
			// Layers
			// 
			this.Layers.ImageIndex = 3;
			// 
			// 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;
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.ImageList = this.imageList1;
			this.tabControl1.Location = new System.Drawing.Point(16, 48);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(216, 496);
			this.tabControl1.TabIndex = 6;
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.treeView1);
			this.tabPage1.ImageIndex = 10;
			this.tabPage1.Location = new System.Drawing.Point(4, 23);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(208, 469);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "数据表";
			// 
			// treeView1
			// 
			this.treeView1.ImageIndex = 2;
			this.treeView1.ImageList = this.imageList1;
			this.treeView1.Location = new System.Drawing.Point(8, 24);
			this.treeView1.Name = "treeView1";
			this.treeView1.SelectedImageIndex = 3;
			this.treeView1.Size = new System.Drawing.Size(192, 432);
			this.treeView1.TabIndex = 0;
			this.treeView1.DoubleClick += new System.EventHandler(this.treeView1_DoubleClick);
			// 
			// tabPage2
			// 
			this.tabPage2.Controls.Add(this.treeView2);
			this.tabPage2.ImageIndex = 3;
			this.tabPage2.Location = new System.Drawing.Point(4, 23);
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.Size = new System.Drawing.Size(208, 469);
			this.tabPage2.TabIndex = 1;
			this.tabPage2.Text = "图层";
			// 
			// treeView2
			// 
			this.treeView2.CheckBoxes = true;
			this.treeView2.ImageIndex = -1;
			this.treeView2.Location = new System.Drawing.Point(8, 16);
			this.treeView2.Name = "treeView2";
			this.treeView2.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
																				  new System.Windows.Forms.TreeNode("海底地貌图"),
																				  new System.Windows.Forms.TreeNode("海底观测网布设图"),
																				  new System.Windows.Forms.TreeNode("监测数据图")});
			this.treeView2.SelectedImageIndex = -1;
			this.treeView2.Size = new System.Drawing.Size(192, 448);
			this.treeView2.TabIndex = 0;
			// 
			// tabControl2
			// 
			this.tabControl2.Controls.Add(this.tabPage3);
			this.tabControl2.Controls.Add(this.tabPage4);
			this.tabControl2.Controls.Add(this.tabPage5);
			this.tabControl2.Location = new System.Drawing.Point(256, 72);
			this.tabControl2.Name = "tabControl2";
			this.tabControl2.SelectedIndex = 0;
			this.tabControl2.Size = new System.Drawing.Size(664, 472);
			this.tabControl2.TabIndex = 7;
			// 
			// tabPage3
			// 
			this.tabPage3.Controls.Add(this.dataGrid1);
			this.tabPage3.Location = new System.Drawing.Point(4, 21);
			this.tabPage3.Name = "tabPage3";
			this.tabPage3.Size = new System.Drawing.Size(656, 447);
			this.tabPage3.TabIndex = 0;
			this.tabPage3.Text = "数据表";
			// 
			// dataGrid1
			// 
			this.dataGrid1.DataMember = "";
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(8, 16);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.Size = new System.Drawing.Size(640, 416);
			this.dataGrid1.TabIndex = 0;
			// 
			// tabPage4
			// 
			this.tabPage4.Location = new System.Drawing.Point(4, 21);
			this.tabPage4.Name = "tabPage4";
			this.tabPage4.Size = new System.Drawing.Size(656, 447);
			this.tabPage4.TabIndex = 1;
			this.tabPage4.Text = "直方图";
			// 
			// tabPage5
			// 
			this.tabPage5.Location = new System.Drawing.Point(4, 21);
			this.tabPage5.Name = "tabPage5";
			this.tabPage5.Size = new System.Drawing.Size(656, 447);
			this.tabPage5.TabIndex = 2;
			this.tabPage5.Text = "可视化图";
			// 
			// statusBar1
			// 
			this.statusBar1.Location = new System.Drawing.Point(0, 553);
			this.statusBar1.Name = "statusBar1";
			this.statusBar1.Size = new System.Drawing.Size(936, 24);
			this.statusBar1.TabIndex = 8;
			this.statusBar1.Text = "statusBar1";
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 7;
			this.menuItem4.Text = "报表输出";
			// 
			// main
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(936, 577);
			this.Controls.Add(this.statusBar1);
			this.Controls.Add(this.tabControl2);
			this.Controls.Add(this.tabControl1);
			this.Controls.Add(this.toolBar1);
			this.Controls.Add(this.button1);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Menu = this.mainMenu1;
			this.Name = "main";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "基站信息管理系统";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.main_Closing);
			this.Load += new System.EventHandler(this.main_Load);
			this.tabControl1.ResumeLayout(false);
			this.tabPage1.ResumeLayout(false);
			this.tabPage2.ResumeLayout(false);
			this.tabControl2.ResumeLayout(false);
			this.tabPage3.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion


		private void main_Load(object sender, System.EventArgs e)
		{
			
			connection.ConnectionString = "workstation id=local;integrated security=SSPI;" + "persist security info=False;initial catalog=Marine_network";
			//打开数据连接
			connection.Open();

			
			try
			{
				//定义查询变量并初始化
				SqlCommand selectCMD1 = new SqlCommand("SELECT * FROM 结点表", connection);
				//定义数据适配器,并用查询变量初始化

⌨️ 快捷键说明

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