hbhbice

导航

二进制文件比较程序

因为最近正在写一个采集GPS数据的程序,打算采集的GPS数据准备用shapefile来存储,因此大至研究了一下shapefile的结构,好把数据存储下来,无奈,自己建立的shapefile数据总与ArcGIS建立的有出入,这三个二进制文件(shp shx dbf),总是存在各种各样的错误,由于是二进制文件,不好查到底是哪里出了错误,我便又写了这个文件比较程序,比较我写的文件与原始文件,看看到底是哪个字节出错。

界面如下:

 

实现效果:

 

这样可以清楚的看清哪些字节不同,不同的字节会给出提示。第一列是表示文件的第多少个字节,第二列是字节的值。

 

下面贴出代码:

 

下面是CompareFile.cs

 1 using System;
 2 using System.Collections.Generic;
 3 using System.Text;
 4 using System.IO;
 5 using System.Windows.Forms;
 6 using System.Data;
 7 
 8 namespace CompareFile
 9 {
10     public  class FileCompare
11     {
12         private FileStream fs1, fs2;
13         private DataTable _DiffTab1,_DiffTab2;
14 
15         public DataTable DiffTab1
16         {
17             get {
18                 return _DiffTab1;
19             }
20         }
21 
22         public DataTable DiffTab2
23         {
24             get
25             {
26                 return _DiffTab2;
27             }
28         }
29 
30         public FileCompare(FileStream fs1, FileStream fs2)
31         {
32             this.fs1 = fs1;
33             this.fs2 = fs2;
34         }
35 
36         public void CompareAllFile()
37         {
38             if (fs1 .Length !=fs2.Length )
39             {
40                 if (MessageBox.Show("两文件长度不等\r\n文件1长:" + fs1.Length.ToString() + "\r\n文件2长:" + fs2.Length.ToString() + "\r\n是否继续比较?""文件比较结果"== DialogResult.Cancel )
41                 {
42                     return;
43                 }
44             }
45             BinaryReader br1 = new BinaryReader (fs1 );
46             BinaryReader br2 = new BinaryReader (fs2);
47             long min = fs1.Length >= fs2.Length ? fs2.Length : fs1.Length;
48             for (long i = 0; i <min   ; i++)
49             {
50                 if ( br1 .ReadByte ()!=br2 .ReadByte ())
51                 {
52                     if (MessageBox.Show("从0起,第" + (br1.BaseStream.Position - 1).ToString() + "个字节不匹配" + "是否继续搜寻?""文件比较",MessageBoxButtons.OKCancel) == DialogResult.OK)
53                     {
54 
55                     }
56                     else 
57                     {
58                         br1.BaseStream.Seek((br1.BaseStream.Position / 50* 500);
59                         br2.BaseStream.Seek((br1.BaseStream.Position / 50* 500);
60                         if (br1 .BaseStream .Length - br1 .BaseStream .Position >50&&br2 .BaseStream .Length - br2 .BaseStream .Position >50)
61                         {
62                             _DiffTab1 = new DataTable();
63                             _DiffTab2 = new DataTable();
64                             DataColumn dc1 = new DataColumn("位置");
65                             DataColumn dc2 = new DataColumn("数值");
66                             DataColumn dc3 = new DataColumn("位置");
67                             DataColumn dc4 = new DataColumn("数值");
68                             _DiffTab1.Columns.Add(dc1);
69                             _DiffTab1.Columns.Add(dc2);
70                             _DiffTab2.Columns.Add(dc3);
71                             _DiffTab2.Columns.Add(dc4);
72                             for (int j = 0; j < 50; j++)
73                             {
74                                 DataRow dr1 = _DiffTab1.NewRow();
75                                 dr1[0= br1.BaseStream.Position;
76                                 dr1[1= br1.ReadByte();
77                                 DiffTab1.Rows.Add(dr1);
78                                 DataRow dr2 = _DiffTab2.NewRow();
79                                 dr2[0= br2.BaseStream.Position;
80                                 dr2[1= br2.ReadByte();
81                                 DiffTab2.Rows.Add(dr2);
82                             }
83                         }
84                         return;                                
85                     }
86 
87 
88                 }
89                 if (fs1.Position == min )
90                 {
91                     MessageBox.Show("到达两文件中较小文件的尾部");
92                 }
93             }
94                 
95 
96         }
97     }
98 }

 

 

Form1.cs

 

 1 using System;
 2 using System.Collections.Generic;
 3 using System.ComponentModel;
 4 using System.Data;
 5 using System.Drawing;
 6 using System.Text;
 7 using System.Windows.Forms;
 8 using System.IO;
 9 
10 namespace CompareFile
11 {
12     public partial class Form1 : Form
13     {
14         FileStream fs1;
15         FileStream fs2;
16 
17         public Form1()
18         {
19             InitializeComponent();
20         }
21 
22         private void 打开OToolStripMenuItem_Click(object sender, EventArgs e)
23         {
24             if (openFileDialog1 .ShowDialog ()== DialogResult .OK )
25             {
26                 fs1 = (FileStream )openFileDialog1.OpenFile();
27             }
28         }
29 
30         private void 保存SToolStripMenuItem_Click(object sender, EventArgs e)
31         {
32             if (openFileDialog1.ShowDialog ()== DialogResult .OK )
33             {
34                 fs2 = (FileStream )openFileDialog1.OpenFile();
35             }
36         }
37 
38         private void 自定义CToolStripMenuItem_Click(object sender, EventArgs e)
39         {
40             if (fs1 != null && fs2 != null)
41             {
42                 CompareFile.FileCompare fc = new CompareFile.FileCompare(fs1, fs2);
43                 fc.CompareAllFile();
44                 dataGridView1.DataSource = fc.DiffTab1;
45                 dataGridView2.DataSource = fc.DiffTab2;
46             }
47             else
48             {
49                 MessageBox.Show ("请先将两个文件打开,然后再进行比较!");
50             }
51 
52         }
53 
54         private void 另存为AToolStripMenuItem_Click(object sender, EventArgs e)
55         {
56             fs1.Close();
57             fs2.Close();
58 
59         }
60 
61     }
62 }

 

Form1.Designer.cs(如果界面方面不清楚,参考以下代码。)

 

代码
  1 namespace CompareFile
  2 {
  3     partial class Form1
  4     {
  5         /// <summary>
  6         /// 必需的设计器变量。
  7         /// </summary>
  8         private System.ComponentModel.IContainer components = null;
  9 
 10         /// <summary>
 11         /// 清理所有正在使用的资源。
 12         /// </summary>
 13         /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
 14         protected override void Dispose(bool disposing)
 15         {
 16             if (disposing && (components != null))
 17             {
 18                 components.Dispose();
 19             }
 20             base.Dispose(disposing);
 21         }
 22 
 23         #region Windows 窗体设计器生成的代码
 24 
 25         /// <summary>
 26         /// 设计器支持所需的方法 - 不要
 27         /// 使用代码编辑器修改此方法的内容。
 28         /// </summary>
 29         private void InitializeComponent()
 30         {
 31             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
 32             this.menuStrip1 = new System.Windows.Forms.MenuStrip();
 33             this.文件FToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 34             this.新建NToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 35             this.打开OToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 36             this.保存SToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 37             this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
 38             this.另存为AToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 39             this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
 40             this.打印PToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 41             this.打印预览VToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 42             this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
 43             this.退出XToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 44             this.编辑EToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 45             this.撤消UToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 46             this.重复RToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 47             this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
 48             this.剪切TToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 49             this.复制CToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 50             this.粘贴PToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 51             this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
 52             this.全选AToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 53             this.工具TToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 54             this.自定义CToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 55             this.选项OToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 56             this.帮助HToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 57             this.内容CToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 58             this.索引IToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 59             this.搜索SToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 60             this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
 61             this.关于AToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
 62             this.splitContainer1 = new System.Windows.Forms.SplitContainer();
 63             this.dataGridView1 = new System.Windows.Forms.DataGridView();
 64             this.dataGridView2 = new System.Windows.Forms.DataGridView();
 65             this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
 66             this.toolStrip1 = new System.Windows.Forms.ToolStrip();
 67             this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
 68             this.menuStrip1.SuspendLayout();
 69             this.splitContainer1.Panel1.SuspendLayout();
 70             this.splitContainer1.Panel2.SuspendLayout();
 71             this.splitContainer1.SuspendLayout();
 72             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
 73             ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
 74             this.toolStrip1.SuspendLayout();
 75             this.SuspendLayout();
 76             // 
 77             // menuStrip1
 78             // 
 79             this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
 80             this.文件FToolStripMenuItem,
 81             this.编辑EToolStripMenuItem,
 82             this.工具TToolStripMenuItem,
 83             this.帮助HToolStripMenuItem});
 84             this.menuStrip1.Location = new System.Drawing.Point(00);
 85             this.menuStrip1.Name = "menuStrip1";
 86             this.menuStrip1.Size = new System.Drawing.Size(67624);
 87             this.menuStrip1.TabIndex = 0;
 88             this.menuStrip1.Text = "menuStrip1";
 89             // 
 90             // 文件FToolStripMenuItem
 91             // 
 92             this.文件FToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
 93             this.新建NToolStripMenuItem,
 94             this.打开OToolStripMenuItem,
 95             this.保存SToolStripMenuItem,
 96             this.toolStripSeparator,
 97             this.另存为AToolStripMenuItem,
 98             this.toolStripSeparator1,
 99             this.打印PToolStripMenuItem,
100             this.打印预览VToolStripMenuItem,
101             this.toolStripSeparator2,
102             this.退出XToolStripMenuItem});
103             this.文件FToolStripMenuItem.Name = "文件FToolStripMenuItem";
104             this.文件FToolStripMenuItem.Size = new System.Drawing.Size(5920);
105             this.文件FToolStripMenuItem.Text = "文件(&F)";
106             // 
107             // 新建NToolStripMenuItem
108             // 
109             this.新建NToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("新建NToolStripMenuItem.Image")));
110             this.新建NToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
111             this.新建NToolStripMenuItem.Name = "新建NToolStripMenuItem";
112             this.新建NToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
113             this.新建NToolStripMenuItem.Size = new System.Drawing.Size(19022);
114             this.新建NToolStripMenuItem.Text = "新建(&N)";
115             // 
116             // 打开OToolStripMenuItem
117             // 
118             this.打开OToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("打开OToolStripMenuItem.Image")));
119             this.打开OToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
120             this.打开OToolStripMenuItem.Name = "打开OToolStripMenuItem";
121             this.打开OToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
122             this.打开OToolStripMenuItem.Size = new System.Drawing.Size(19022);
123             this.打开OToolStripMenuItem.Text = "打开文件1(&O)";
124             this.打开OToolStripMenuItem.Click += new System.EventHandler(this.打开OToolStripMenuItem_Click);
125             // 
126             // 保存SToolStripMenuItem
127             // 
128             this.保存SToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
129             this.保存SToolStripMenuItem.Name = "保存SToolStripMenuItem";
130             this.保存SToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
131             this.保存SToolStripMenuItem.Size = new System.Drawing.Size(19022);
132             this.保存SToolStripMenuItem.Text = "打开文件2(&S)";
133             this.保存SToolStripMenuItem.Click += new System.EventHandler(this.保存SToolStripMenuItem_Click);
134             // 
135             // toolStripSeparator
136             // 
137             this.toolStripSeparator.Name = "toolStripSeparator";
138             this.toolStripSeparator.Size = new System.Drawing.Size(1876);
139             // 
140             // 另存为AToolStripMenuItem
141             // 
142             this.另存为AToolStripMenuItem.Name = "另存为AToolStripMenuItem";
143             this.另存为AToolStripMenuItem.Size = new System.Drawing.Size(19022);
144             this.另存为AToolStripMenuItem.Text = "关闭两文件(&A)";
145             this.另存为AToolStripMenuItem.Click += new System.EventHandler(this.另存为AToolStripMenuItem_Click);
146             // 
147             // toolStripSeparator1
148             // 
149             this.toolStripSeparator1.Name = "toolStripSeparator1";
150             this.toolStripSeparator1.Size = new System.Drawing.Size(1876);
151             // 
152             // 打印PToolStripMenuItem
153             // 
154             this.打印PToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("打印PToolStripMenuItem.Image")));
155             this.打印PToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
156             this.打印PToolStripMenuItem.Name = "打印PToolStripMenuItem";
157             this.打印PToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
158             this.打印PToolStripMenuItem.Size = new System.Drawing.Size(19022);
159             this.打印PToolStripMenuItem.Text = "打印(&P)";
160             // 
161             // 打印预览VToolStripMenuItem
162             // 
163             this.打印预览VToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("打印预览VToolStripMenuItem.Image")));
164             this.打印预览VToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
165             this.打印预览VToolStripMenuItem.Name = "打印预览VToolStripMenuItem";
166             this.打印预览VToolStripMenuItem.Size = new System.Drawing.Size(19022);
167             this.打印预览VToolStripMenuItem.Text = "打印预览(&V)";
168             // 
169             // toolStripSeparator2
170             // 
171             this.toolStripSeparator2.Name = "toolStripSeparator2";
172             this.toolStripSeparator2.Size = new System.Drawing.Size(1876);
173             // 
174             // 退出XToolStripMenuItem
175             // 
176             this.退出XToolStripMenuItem.Name = "退出XToolStripMenuItem";
177             this.退出XToolStripMenuItem.Size = new System.Drawing.Size(19022);
178             this.退出XToolStripMenuItem.Text = "退出(&X)";
179             // 
180             // 编辑EToolStripMenuItem
181             // 
182             this.编辑EToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
183             this.撤消UToolStripMenuItem,
184             this.重复RToolStripMenuItem,
185             this.toolStripSeparator3,
186             this.剪切TToolStripMenuItem,
187             this.复制CToolStripMenuItem,
188             this.粘贴PToolStripMenuItem,
189             this.toolStripSeparator4,
190             this.全选AToolStripMenuItem});
191             this.编辑EToolStripMenuItem.Name = "编辑EToolStripMenuItem";
192             this.编辑EToolStripMenuItem.Size = new System.Drawing.Size(6020);
193             this.编辑EToolStripMenuItem.Text = "编辑(&E)";
194             // 
195             // 撤消UToolStripMenuItem
196             // 
197             this.撤消UToolStripMenuItem.Name = "撤消UToolStripMenuItem";
198             this.撤消UToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
199             this.撤消UToolStripMenuItem.Size = new System.Drawing.Size(15622);
200             this.撤消UToolStripMenuItem.Text = "撤消(&U)";
201             // 
202             // 重复RToolStripMenuItem
203             // 
204             this.重复RToolStripMenuItem.Name = "重复RToolStripMenuItem";
205             this.重复RToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
206             this.重复RToolStripMenuItem.Size = new System.Drawing.Size(15622);
207             this.重复RToolStripMenuItem.Text = "重复(&R)";
208             // 
209             // toolStripSeparator3
210             // 
211             this.toolStripSeparator3.Name = "toolStripSeparator3";
212             this.toolStripSeparator3.Size = new System.Drawing.Size(1536);
213             // 
214             // 剪切TToolStripMenuItem
215             // 
216             this.剪切TToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("剪切TToolStripMenuItem.Image")));
217             this.剪切TToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
218             this.剪切TToolStripMenuItem.Name = "剪切TToolStripMenuItem";
219             this.剪切TToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
220             this.剪切TToolStripMenuItem.Size = new System.Drawing.Size(15622);
221             this.剪切TToolStripMenuItem.Text = "剪切(&T)";
222             // 
223             // 复制CToolStripMenuItem
224             // 
225             this.复制CToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("复制CToolStripMenuItem.Image")));
226             this.复制CToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
227             this.复制CToolStripMenuItem.Name = "复制CToolStripMenuItem";
228             this.复制CToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
229             this.复制CToolStripMenuItem.Size = new System.Drawing.Size(15622);
230             this.复制CToolStripMenuItem.Text = "复制(&C)";
231             // 
232             // 粘贴PToolStripMenuItem
233             // 
234             this.粘贴PToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("粘贴PToolStripMenuItem.Image")));
235             this.粘贴PToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
236             this.粘贴PToolStripMenuItem.Name = "粘贴PToolStripMenuItem";
237             this.粘贴PToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
238             this.粘贴PToolStripMenuItem.Size = new System.Drawing.Size(15622);
239             this.粘贴PToolStripMenuItem.Text = "粘贴(&P)";
240             // 
241             // toolStripSeparator4
242             // 
243             this.toolStripSeparator4.Name = "toolStripSeparator4";
244             this.toolStripSeparator4.Size = new System.Drawing.Size(1536);
245             // 
246             // 全选AToolStripMenuItem
247             // 
248             this.全选AToolStripMenuItem.Name = "全选AToolStripMenuItem";
249             this.全选AToolStripMenuItem.Size = new System.Drawing.Size(15622);
250             this.全选AToolStripMenuItem.Text = "全选(&A)";
251             // 
252             // 工具TToolStripMenuItem
253             // 
254             this.工具TToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
255             this.自定义CToolStripMenuItem,
256             this.选项OToolStripMenuItem});
257             this.工具TToolStripMenuItem.Name = "工具TToolStripMenuItem";
258             this.工具TToolStripMenuItem.Size = new System.Drawing.Size(6120);
259             this.工具TToolStripMenuItem.Text = "工具(&T)";
260             // 
261             // 自定义CToolStripMenuItem
262             // 
263             this.自定义CToolStripMenuItem.Name = "自定义CToolStripMenuItem";
264             this.自定义CToolStripMenuItem.Size = new System.Drawing.Size(11722);
265             this.自定义CToolStripMenuItem.Text = "比较(&C)";
266             this.自定义CToolStripMenuItem.Click += new System.EventHandler(this.自定义CToolStripMenuItem_Click);
267             // 
268             // 选项OToolStripMenuItem
269             // 
270             this.选项OToolStripMenuItem.Name = "选项OToolStripMenuItem";
271             this.选项OToolStripMenuItem.Size = new System.Drawing.Size(11722);
272             this.选项OToolStripMenuItem.Text = "选项(&O)";
273             // 
274             // 帮助HToolStripMenuItem
275             // 
276             this.帮助HToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
277             this.内容CToolStripMenuItem,
278             this.索引IToolStripMenuItem,
279             this.搜索SToolStripMenuItem,
280             this.toolStripSeparator5,
281             this.关于AToolStripMenuItem});
282             this.帮助HToolStripMenuItem.Name = "帮助HToolStripMenuItem";
283             this.帮助HToolStripMenuItem.Size = new System.Drawing.Size(6120);
284             this.帮助HToolStripMenuItem.Text = "帮助(&H)";
285             // 
286             // 内容CToolStripMenuItem
287             // 
288             this.内容CToolStripMenuItem.Name = "内容CToolStripMenuItem";
289             this.内容CToolStripMenuItem.Size = new System.Drawing.Size(12822);
290             this.内容CToolStripMenuItem.Text = "内容(&C)";
291             // 
292             // 索引IToolStripMenuItem
293             // 
294             this.索引IToolStripMenuItem.Name = "索引IToolStripMenuItem";
295             this.索引IToolStripMenuItem.Size = new System.Drawing.Size(12822);
296             this.索引IToolStripMenuItem.Text = "索引(&I)";
297             // 
298             // 搜索SToolStripMenuItem
299             // 
300             this.搜索SToolStripMenuItem.Name = "搜索SToolStripMenuItem";
301             this.搜索SToolStripMenuItem.Size = new System.Drawing.Size(12822);
302             this.搜索SToolStripMenuItem.Text = "搜索(&S)";
303             // 
304             // toolStripSeparator5
305             // 
306             this.toolStripSeparator5.Name = "toolStripSeparator5";
307             this.toolStripSeparator5.Size = new System.Drawing.Size(1256);
308             // 
309             // 关于AToolStripMenuItem
310             // 
311             this.关于AToolStripMenuItem.Name = "关于AToolStripMenuItem";
312             this.关于AToolStripMenuItem.Size = new System.Drawing.Size(12822);
313             this.关于AToolStripMenuItem.Text = "关于(&A)...";
314             // 
315             // splitContainer1
316             // 
317             this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
318             this.splitContainer1.Location = new System.Drawing.Point(024);
319             this.splitContainer1.Name = "splitContainer1";
320             // 
321             // splitContainer1.Panel1
322             // 
323             this.splitContainer1.Panel1.Controls.Add(this.dataGridView1);
324             // 
325             // splitContainer1.Panel2
326             // 
327             this.splitContainer1.Panel2.Controls.Add(this.dataGridView2);
328             this.splitContainer1.Size = new System.Drawing.Size(676528);
329             this.splitContainer1.SplitterDistance = 326;
330             this.splitContainer1.TabIndex = 1;
331             // 
332             // dataGridView1
333             // 
334             this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
335             this.dataGridView1.Location = new System.Drawing.Point(028);
336             this.dataGridView1.Name = "dataGridView1";
337             this.dataGridView1.RowTemplate.Height = 23;
338             this.dataGridView1.Size = new System.Drawing.Size(326500);
339             this.dataGridView1.TabIndex = 0;
340             // 
341             // dataGridView2
342             // 
343             this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
344             this.dataGridView2.Location = new System.Drawing.Point(028);
345             this.dataGridView2.Name = "dataGridView2";
346             this.dataGridView2.RowTemplate.Height = 23;
347             this.dataGridView2.Size = new System.Drawing.Size(346500);
348             this.dataGridView2.TabIndex = 0;
349             // 
350             // openFileDialog1
351             // 
352             this.openFileDialog1.FileName = "openFileDialog1";
353             // 
354             // toolStrip1
355             // 
356             this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
357             this.toolStripButton1});
358             this.toolStrip1.Location = new System.Drawing.Point(024);
359             this.toolStrip1.Name = "toolStrip1";
360             this.toolStrip1.Size = new System.Drawing.Size(67625);
361             this.toolStrip1.TabIndex = 2;
362             this.toolStrip1.Text = "toolStrip1";
363             // 
364             // toolStripButton1
365             // 
366             this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
367             this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
368             this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
369             this.toolStripButton1.Name = "toolStripButton1";
370             this.toolStripButton1.Size = new System.Drawing.Size(2322);
371             this.toolStripButton1.Text = "toolStripButton1";
372             // 
373             // Form1
374             // 
375             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
376             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
377             this.ClientSize = new System.Drawing.Size(676552);
378             this.Controls.Add(this.toolStrip1);
379             this.Controls.Add(this.splitContainer1);
380             this.Controls.Add(this.menuStrip1);
381             this.MainMenuStrip = this.menuStrip1;
382             this.Name = "Form1";
383             this.Text = "Form1";
384             this.menuStrip1.ResumeLayout(false);
385             this.menuStrip1.PerformLayout();
386             this.splitContainer1.Panel1.ResumeLayout(false);
387             this.splitContainer1.Panel2.ResumeLayout(false);
388             this.splitContainer1.ResumeLayout(false);
389             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
390             ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
391             this.toolStrip1.ResumeLayout(false);
392             this.toolStrip1.PerformLayout();
393             this.ResumeLayout(false);
394             this.PerformLayout();
395 
396         }
397 
398         #endregion
399 
400         private System.Windows.Forms.MenuStrip menuStrip1;
401         private System.Windows.Forms.ToolStripMenuItem 文件FToolStripMenuItem;
402         private System.Windows.Forms.ToolStripMenuItem 新建NToolStripMenuItem;
403         private System.Windows.Forms.ToolStripMenuItem 打开OToolStripMenuItem;
404         private System.Windows.Forms.ToolStripSeparator toolStripSeparator;
405         private System.Windows.Forms.ToolStripMenuItem 保存SToolStripMenuItem;
406         private System.Windows.Forms.ToolStripMenuItem 另存为AToolStripMenuItem;
407         private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
408         private System.Windows.Forms.ToolStripMenuItem 打印PToolStripMenuItem;
409         private System.Windows.Forms.ToolStripMenuItem 打印预览VToolStripMenuItem;
410         private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
411         private System.Windows.Forms.ToolStripMenuItem 退出XToolStripMenuItem;
412         private System.Windows.Forms.ToolStripMenuItem 编辑EToolStripMenuItem;
413         private System.Windows.Forms.ToolStripMenuItem 撤消UToolStripMenuItem;
414         private System.Windows.Forms.ToolStripMenuItem 重复RToolStripMenuItem;
415         private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
416         private System.Windows.Forms.ToolStripMenuItem 剪切TToolStripMenuItem;
417         private System.Windows.Forms.ToolStripMenuItem 复制CToolStripMenuItem;
418         private System.Windows.Forms.ToolStripMenuItem 粘贴PToolStripMenuItem;
419         private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
420         private System.Windows.Forms.ToolStripMenuItem 全选AToolStripMenuItem;
421         private System.Windows.Forms.ToolStripMenuItem 工具TToolStripMenuItem;
422         private System.Windows.Forms.ToolStripMenuItem 自定义CToolStripMenuItem;
423         private System.Windows.Forms.ToolStripMenuItem 选项OToolStripMenuItem;
424         private System.Windows.Forms.ToolStripMenuItem 帮助HToolStripMenuItem;
425         private System.Windows.Forms.ToolStripMenuItem 内容CToolStripMenuItem;
426         private System.Windows.Forms.ToolStripMenuItem 索引IToolStripMenuItem;
427         private System.Windows.Forms.ToolStripMenuItem 搜索SToolStripMenuItem;
428         private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
429         private System.Windows.Forms.ToolStripMenuItem 关于AToolStripMenuItem;
430         private System.Windows.Forms.SplitContainer splitContainer1;
431         private System.Windows.Forms.OpenFileDialog openFileDialog1;
432         private System.Windows.Forms.DataGridView dataGridView1;
433         private System.Windows.Forms.DataGridView dataGridView2;
434         private System.Windows.Forms.ToolStrip toolStrip1;
435         private System.Windows.Forms.ToolStripButton toolStripButton1;
436 
437     }
438 }
439 
440 

 

 

 

 

 

 

 

 

posted on 2010-06-30 16:47  hbhbice  阅读(2314)  评论(1编辑  收藏  举报