建立一個WinForm應用程序 添加MenuStrip控件
用了兩個DataSet控件和對話框
讀取
private void 讀取ToolStripMenuItem_Click(object sender
{
if (opFileDlg
{
if(opFileDlg
{
twoXML
foreach (DataRow twoRow in twoXML
{
DataRow newRow = dsXML
newRow [
newRow[
newRow[
newRow[
newRow[
newRow[
newRow[
dsXML
}
int n = dsXML
for(int i=
{
dsXML
}
dsXML
this
MessageBox
}
}
else
{
this
}
}
導出
private void 導出ToolStripMenuItem_Click(object sender
{
if (svFileDlg
{
dsXML
this
MessageBox
}
else
{
this
}
}
From:http://tw.wingwit.com/Article/program/ASP/201311/21826.html