資源簡介
自己寫的,運用dot net解析XML文件,并在用WinForm進行顯示。。。。。

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.xml;
namespace?xmlRW
{
????public?partial?class?FrmMain?:?Form
????{
????????public?FrmMain()
????????{
????????????InitializeComponent();
????????}
????????private?void?toolStripMenuItem1_Click(object?sender?EventArgs?e)
????????{
????????????OpenFileDialog?dialog1?=?new?OpenFileDialog();
????????????dialog1.Filter?=?“FR?文件(*.fr)|*.fr“;
????????????if?(dialog1.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????this.tabControl.TabPages.Clear();
????????????????this.strxmlPath?=?dialog1.FileName;
????????????????this.tabControl?=?PageParse.getTabControl(strxmlPath?this.tabControl);
????????????}
????????????this.Controls.Add(this.tabControl);
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????int?screenWidth?=?Screen.PrimaryScreen.Bounds.Width;
????????????int?screenHeight?=?Screen.PrimaryScreen.Bounds.Height;
????????????this.Width?=?screenWidth?/?2;
????????????this.Height?=?screenHeight?/?2;
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????17920??2011-08-10?16:01??xm
?????文件??????32256??2011-08-10?16:01??xm
?????文件??????14328??2011-08-10?16:04??xm
?????文件????????490??2007-07-21?01:33??xm
?????文件???????8839??2006-04-20?10:29??xm
?????文件???????1220??2011-08-10?13:49??xm
?????文件???????3734??2011-08-10?16:01??xm
?????文件???????6012??2011-08-10?13:46??xm
?????文件???????2329??2010-03-23?10:19??xm
?????文件???????4608??2011-08-03?13:46??xm
?????文件???????1032??2011-08-10?16:04??xm
?????文件????????883??2011-08-10?13:46??xm
?????文件??????17920??2011-08-10?16:01??xm
?????文件????????180??2011-08-10?13:46??xm
?????文件??????32256??2011-08-10?16:01??xm
?????文件???????2824??2011-08-05?16:29??xm
?????文件??????13640??2011-08-09?09:35??xm
?????文件????????488??2011-08-03?13:41??xm
?????文件???????1366??2011-08-03?13:40??xm
?????文件???????3084??2011-08-03?13:45??xm
?????文件???????6191??2011-08-03?13:45??xm
?????文件???????1090??2011-08-03?13:40??xm
?????文件????????249??2011-08-03?13:40??xm
?????文件???????3878??2011-08-05?16:20??xm
?????文件????????905??2011-08-03?13:42??Testxm
????..A..H.?????17920??2011-08-10?16:02??Testxm
?????目錄??????????0??2011-08-10?16:05??xm
?????目錄??????????0??2011-08-10?16:05??xm
?????目錄??????????0??2011-08-10?16:05??xm
?????目錄??????????0??2011-08-10?16:05??xm
............此處省略9個文件信息
- 上一篇:小型C#視頻會議源碼
- 下一篇:C#成語字典查詢代碼
評論
共有 條評論