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

📄 form1.cs

📁 煤矿信息管理系统是基于SuperMap Object
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.Threading;

namespace serversetup
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{


		
		private string[,] database_name;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.Button btn_esc;
		private System.Windows.Forms.Button btn_ok;
		private System.Windows.Forms.TextBox txt_user;
		private System.Windows.Forms.TextBox txt_pwd;
		private System.Windows.Forms.TextBox txt_ip;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private AxSuperMapLib.AxSuperWorkspace axSuperWorkspace1;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.CheckBox checkBox1;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// 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>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.btn_esc = new System.Windows.Forms.Button();
			this.btn_ok = new System.Windows.Forms.Button();
			this.txt_user = new System.Windows.Forms.TextBox();
			this.txt_pwd = new System.Windows.Forms.TextBox();
			this.txt_ip = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.axSuperWorkspace1 = new AxSuperMapLib.AxSuperWorkspace();
			this.label5 = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.checkBox1 = new System.Windows.Forms.CheckBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			((System.ComponentModel.ISupportInitialize)(this.axSuperWorkspace1)).BeginInit();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// pictureBox1
			// 
			this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.pictureBox1.Location = new System.Drawing.Point(8, 184);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(560, 4);
			this.pictureBox1.TabIndex = 19;
			this.pictureBox1.TabStop = false;
			// 
			// btn_esc
			// 
			this.btn_esc.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btn_esc.Location = new System.Drawing.Point(456, 192);
			this.btn_esc.Name = "btn_esc";
			this.btn_esc.TabIndex = 18;
			this.btn_esc.Text = "关闭";
			this.btn_esc.Click += new System.EventHandler(this.btn_esc_Click);
			// 
			// btn_ok
			// 
			this.btn_ok.Enabled = false;
			this.btn_ok.Location = new System.Drawing.Point(344, 192);
			this.btn_ok.Name = "btn_ok";
			this.btn_ok.TabIndex = 17;
			this.btn_ok.Text = "确定";
			this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click);
			// 
			// txt_user
			// 
			this.txt_user.Location = new System.Drawing.Point(96, 56);
			this.txt_user.Name = "txt_user";
			this.txt_user.Size = new System.Drawing.Size(158, 21);
			this.txt_user.TabIndex = 13;
			this.txt_user.Text = "";
			// 
			// txt_pwd
			// 
			this.txt_pwd.Location = new System.Drawing.Point(96, 88);
			this.txt_pwd.Name = "txt_pwd";
			this.txt_pwd.PasswordChar = '*';
			this.txt_pwd.Size = new System.Drawing.Size(158, 21);
			this.txt_pwd.TabIndex = 15;
			this.txt_pwd.Text = "";
			// 
			// txt_ip
			// 
			this.txt_ip.Location = new System.Drawing.Point(96, 24);
			this.txt_ip.Name = "txt_ip";
			this.txt_ip.Size = new System.Drawing.Size(158, 21);
			this.txt_ip.TabIndex = 11;
			this.txt_ip.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(8, 24);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(80, 23);
			this.label3.TabIndex = 16;
			this.label3.Text = "服务器IP地址";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(16, 88);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 24);
			this.label2.TabIndex = 14;
			this.label2.Text = "用户密码";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 56);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(80, 23);
			this.label1.TabIndex = 12;
			this.label1.Text = "数据库用户名";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// axSuperWorkspace1
			// 
			this.axSuperWorkspace1.Enabled = true;
			this.axSuperWorkspace1.Location = new System.Drawing.Point(176, 144);
			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 = 22;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(40, 160);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(520, 16);
			this.label5.TabIndex = 23;
			this.label5.Text = "提示信息";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(8, 16);
			this.textBox1.Multiline = true;
			this.textBox1.Name = "textBox1";
			this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.textBox1.Size = new System.Drawing.Size(264, 96);
			this.textBox1.TabIndex = 24;
			this.textBox1.Text = "系统将创建以下数据库,如果系统中有同名的库,将被覆盖。 此操作将不可撤消,您确认执行本次操作?\r\n\r\n数据库列表:\r\n    workspace   pm1x  " +
				"pm2x   pm3x   pm4x  pm5x  pm6x  pm7x  pm8x  pm9x  pm10x  pm11x  pm12x  pm13x  pm" +
				"14x   pm112x  pm113x  wu8  wu910  ji1617   geng20  ding56  ding4  diban\r\n   ";
			// 
			// checkBox1
			// 
			this.checkBox1.ForeColor = System.Drawing.Color.Red;
			this.checkBox1.Location = new System.Drawing.Point(24, 114);
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.Size = new System.Drawing.Size(240, 24);
			this.checkBox1.TabIndex = 26;
			this.checkBox1.Text = "我已经仔细阅读了警告,确认执行操作";
			this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.checkBox1);
			this.groupBox1.Controls.Add(this.textBox1);
			this.groupBox1.ForeColor = System.Drawing.Color.Red;
			this.groupBox1.Location = new System.Drawing.Point(16, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(280, 144);
			this.groupBox1.TabIndex = 27;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "警告";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.txt_pwd);
			this.groupBox2.Controls.Add(this.txt_ip);
			this.groupBox2.Controls.Add(this.label3);
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Controls.Add(this.label1);
			this.groupBox2.Controls.Add(this.txt_user);
			this.groupBox2.Location = new System.Drawing.Point(304, 8);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(264, 144);

⌨️ 快捷键说明

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