/// <summary>
/// 自己写的调试datatable
/// </summary>
/// <param name="text"></param>
private void debugoutput(DataTable text)
{
int defaultrowwidth = 40;
string thisrow1 = "";
for (int c = 0; c <= text.Columns.Count - 1; c++)
{
thisrow1 +="["+ text.Columns[c].ColumnName.ToString()+"]";
for (int tt = 0; tt <= defaultrowwidth - (text.Columns[c].ColumnName.ToString().Length+2) - 1; tt++)
{
thisrow1 += " ";
}
}
System.Diagnostics.Debug.WriteLine(thisrow1);
for (int i = 0; i <= text.Rows.Count - 1; i++)
{
string thisrow = "";
for (int c = 0; c <= text.Columns.Count-1; c++)
{
thisrow += text.Rows[i][c].ToString();
for (int tt = 0; tt <= defaultrowwidth - text.Rows[i][c].ToString().Length - 1; tt++)
{
thisrow += " ";
}
}
System.Diagnostics.Debug.WriteLine(thisrow);
}
}
/// 自己写的调试datatable
/// </summary>
/// <param name="text"></param>
private void debugoutput(DataTable text)
{
int defaultrowwidth = 40;
string thisrow1 = "";
for (int c = 0; c <= text.Columns.Count - 1; c++)
{
thisrow1 +="["+ text.Columns[c].ColumnName.ToString()+"]";
for (int tt = 0; tt <= defaultrowwidth - (text.Columns[c].ColumnName.ToString().Length+2) - 1; tt++)
{
thisrow1 += " ";
}
}
System.Diagnostics.Debug.WriteLine(thisrow1);
for (int i = 0; i <= text.Rows.Count - 1; i++)
{
string thisrow = "";
for (int c = 0; c <= text.Columns.Count-1; c++)
{
thisrow += text.Rows[i][c].ToString();
for (int tt = 0; tt <= defaultrowwidth - text.Rows[i][c].ToString().Length - 1; tt++)
{
thisrow += " ";
}
}
System.Diagnostics.Debug.WriteLine(thisrow);
}
}