//将所有内容读取保存到myarray private void btReadWord_Click(object sender, EventArgs e) { int fileCount = lvFile.Items.Count; WordReader reader = new WordReader(); reader.ResetData(); for (int i = 0; i < fileCount; i++) { reader.ReadOne(lvFile.Items[i].SubItems[2].Text); reader.dataArray[i, reader.colCount] = lvFile.Items[i].SubItems[0].Text; } myArray = reader.dataArray; MessageBox.Show("读取完毕"); }