try
{
List<string> Tempstrs;
String strSQL = "SELECT ID FROM Words ";
Tempstrs = FindItems(strSQL);
for (int i = 0; i < Tempstrs.Count; i++)
{
PublicClass.MyWords[i].Number = Tempstrs[i];
}
strSQL = "SELECT English FROM Words ";
Tempstrs = FindItems(strSQL);
for (int i = 0; i < Tempstrs.Count; i++)
{
PublicClass.MyWords[i].English = Tempstrs[i];
}
strSQL = "SELECT Chinese FROM Words ";
Tempstrs = FindItems(strSQL);
for (int i = 0; i < Tempstrs.Count; i++)
{
PublicClass.MyWords[i].Chinese = Tempstrs[i];
}
strSQL = "SELECT Levels FROM Words ";
Tempstrs = FindItems(strSQL);
for (int i = 0; i < Tempstrs.Count; i++)
{
PublicClass.MyWords[i].Levels = Tempstrs[i];
}
int GroupNumber = Tempstrs.Count / 100 + 1;
PublicClass.GroupNumberCount = GroupNumber;
PublicClass.WordNumberCount = Tempstrs.Count;
ShowGroups();
}
catch (Exception er)
{
MessageBox.Show("词库文件错误!");
}