예제 #1
0
 private void testReadIput_Click(object sender, EventArgs e)
 {
     //-----------
     //打开窗口 ,选择所有符合条件的exccl
     //----------
     if (this.openFileDialog2.ShowDialog() == DialogResult.OK)
     {
         foreach (var item in this.openFileDialog2.FileNames)
         {
             using (GameDataTableParser parser = new GameDataTableParser(item))
             {
                 StringBuilder sb = new StringBuilder();
                 while (!parser.Eof)
                 {
                     for (int i = 0; i < parser.FileNames.Length; i++)
                     {
                         string appendStr = parser.GetFileValue(parser.FileNames[i]);
                         if (appendStr != null)
                         {
                             sb.Append(appendStr);
                         }
                     }
                     sb.Append("\r\n");
                     parser.Next();
                 }
                 testTextBox.Text += sb.ToString() + "\r\n";
             }
         }
     }
 }