using System.Data; using System.Net; using System.IO;
namespace DNS集成服务系统 { /// <summary> /// Summary description for Form1. /// </summary> public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.OpenFileDialog openFileDialog1; private System.Windows.Forms.SaveFileDialog saveFileDialog1; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Button button1; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.RichTextBox richTextBox1; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.NumericUpDown numericUpDown1; private System.Windows.Forms.NumericUpDown numericUpDown2; private System.Windows.Forms.NumericUpDown numericUpDown3; private System.Windows.Forms.NumericUpDown numericUpDown4; private System.Windows.Forms.NumericUpDown numericUpDown5; private System.Windows.Forms.Button button2; private System.Windows.Forms.ProgressBar progressBar1; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.Label label3; private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button4; private System.Windows.Forms.Button button5; private System.Windows.Forms.Button button6; private System.Windows.Forms.Button button7; /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.Container components = null;
public Form1() { // // Required for Windows Form Designer support // InitializeComponent();
// // TOD Add any constructor code after InitializeComponent call // }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } 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.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.button3 = new System.Windows.Forms.Button(); this.button7 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.numericUpDown5 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown3 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown4 = new System.Windows.Forms.NumericUpDown(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit(); this.groupBox4.SuspendLayout(); this.SuspendLayout(); // // progressBar1 // this.progressBar1.Location = new System.Drawing.Point(8, 328); this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(504, 23); this.progressBar1.TabIndex = 10; // // label1 // this.label1.Location = new System.Drawing.Point(16, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 23); this.label1.TabIndex = 1; this.label1.Text = "名称:"; // // label2 // this.label2.Location = new System.Drawing.Point(16, 64); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 23); this.label2.TabIndex = 1; this.label2.Text = "IP地址:"; // // label3 // this.label3.Location = new System.Drawing.Point(8, 32); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(72, 23); this.label3.TabIndex = 1; this.label3.Text = "远程主机:"; // // saveFileDialog1 // this.saveFileDialog1.FileName = "doc1"; // // button4 // this.button4.Location = new System.Drawing.Point(16, 248); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(75, 24); this.button4.TabIndex = 0; this.button4.Text = "保存记录"; this.button4.Click += new System.EventHandler(this.button4_Click); // // button5 // this.button5.Location = new System.Drawing.Point(120, 248); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(75, 24); this.button5.TabIndex = 0; this.button5.Text = "查看记录"; this.button5.Click += new System.EventHandler(this.button5_Click); // // button6 // this.button6.Location = new System.Drawing.Point(120, 288); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(75, 24); this.button6.TabIndex = 0; this.button6.Text = "关闭"; this.button6.Click += new System.EventHandler(this.button6_Click); // // textBox2 // this.textBox2.Location = new System.Drawing.Point(80, 64); this.textBox2.Name = "textBox2"; this.textBox2.TabIndex = 2; this.textBox2.Text = ""; // // textBox3 // this.textBox3.Location = new System.Drawing.Point(96, 32); this.textBox3.Name = "textBox3"; this.textBox3.TabIndex = 2; this.textBox3.Text = ""; // // button1 // this.button1.Location = new System.Drawing.Point(200, 24); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 24); this.button1.TabIndex = 0; this.button1.Text = "查询"; this.button1.Click += new System.EventHandler(this.button1_Click); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(80, 24); this.textBox1.Name = "textBox1"; this.textBox1.TabIndex = 2; this.textBox1.Text = ""; // // button3 // this.button3.Location = new System.Drawing.Point(56, 64); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(75, 24); this.button3.TabIndex = 0; this.button3.Text = "查询"; this.button3.Click += new System.EventHandler(this.button3_Click); // // button7 // this.button7.Location = new System.Drawing.Point(16, 288); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(75, 24); this.button7.TabIndex = 0; this.button7.Text = "清理记录"; this.button7.Click += new System.EventHandler(this.button7_Click); // // button2 // this.button2.Location = new System.Drawing.Point(24, 64); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 24); this.button2.TabIndex = 0; this.button2.Text = "开始扫描"; this.button2.Click += new System.EventHandler(this.button2_Click); // // richTextBox1 // this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.richTextBox1.Location = new System.Drawing.Point(3, 17); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(306, 172); this.richTextBox1.TabIndex = 4; this.richTextBox1.Text = ""; this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged); // // groupBox1 // this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.textBox2); this.groupBox1.Controls.Add(this.textBox1); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.button1); this.groupBox1.Location = new System.Drawing.Point(216, 24); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(312, 100); this.groupBox1.TabIndex = 3; this.groupBox1.TabStop = false; this.groupBox1.Text = "本地主机(无需输入)"; // // groupBox2 // this.groupBox2.Controls.Add(this.richTextBox1); this.groupBox2.Location = new System.Drawing.Point(216, 128); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(312, 192); this.groupBox2.TabIndex = 5; this.groupBox2.TabStop = false; this.groupBox2.Text = "查询记录"; // // groupBox3 // this.groupBox3.Controls.Add(this.button2); this.groupBox3.Controls.Add(this.numericUpDown5); this.groupBox3.Controls.Add(this.numericUpDown1); this.groupBox3.Controls.Add(this.numericUpDown2); this.groupBox3.Controls.Add(this.numericUpDown3); this.groupBox3.Controls.Add(this.numericUpDown4); this.groupBox3.Location = new System.Drawing.Point(8, 24); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(200, 96); this.groupBox3.TabIndex = 9; this.groupBox3.TabStop = false; this.groupBox3.Text = "扫描主机"; // // numericUpDown5 // this.numericUpDown5.Location = new System.Drawing.Point(152, 64); this.numericUpDown5.Maximum = new System.Decimal(new int[] { 225, 0, 0, 0}); this.numericUpDown5.Name = "numericUpDown5"; this.numericUpDown5.Size = new System.Drawing.Size(40, 21); this.numericUpDown5.TabIndex = 8; this.numericUpDown5.Value = new System.Decimal(new int[] { 225, 0, 0, 0}); // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(8, 24); this.numericUpDown1.Maximum = new System.Decimal(new int[] { 225, 0, 0, 0}); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(40, 21); this.numericUpDown1.TabIndex = 6; this.numericUpDown1.Value = new System.Decimal(new int[] { 202, 0, 0, 0}); // // numericUpDown2 // this.numericUpDown2.Location = new System.Drawing.Point(56, 24); this.numericUpDown2.Maximum = new System.Decimal(new int[] { 225, 0, 0, 0}); this.numericUpDown2.Name = "numericUpDown2"; this.numericUpDown2.Size = new System.Drawing.Size(40, 21); this.numericUpDown2.TabIndex = 6; this.numericUpDown2.Value = new System.Decimal(new int[] { 207, 0, 0, 0}); // // numericUpDown3 // this.numericUpDown3.Location = new System.Drawing.Point(104, 24); this.numericUpDown3.Maximum = new System.Decimal(new int[] { 225, 0, 0, 0}); this.numericUpDown3.Name = "numericUpDown3"; this.numericUpDown3.Size = new System.Drawing.Size(40, 21); this.numericUpDown3.TabIndex = 7; this.numericUpDown3.Value = new System.Decimal(new int[] { 123, 0, 0, 0}); // // numericUpDown4 // this.numericUpDown4.Location = new System.Drawing.Point(152, 24); this.numericUpDown4.Maximum = new System.Decimal(new int[] {