提交当前本机整理版本
This commit is contained in:
@@ -6818,4 +6818,43 @@ namespace Lskj.PubBillSpecial
|
||||
if (rightEdge > maxRightEdge)
|
||||
{
|
||||
maxRightEdge = rightEdge;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (minLeft == int.MaxValue) minLeft = 0;
|
||||
|
||||
|
||||
int MovingDistance = (Screen.PrimaryScreen.WorkingArea.Width - maxRightEdge) / 2;
|
||||
|
||||
if (dataTable.Columns.Contains("controlLeft") && MovingDistance > 0)
|
||||
{
|
||||
foreach (DataRow item in dataTable.Rows)
|
||||
{
|
||||
item["controlLeft"] = int.Parse(item["controlLeft"] + "") + MovingDistance - minLeft;
|
||||
|
||||
}
|
||||
}
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 判断是不是数值
|
||||
/// </summary>
|
||||
/// <param name="oText"></param>
|
||||
/// <returns></returns>
|
||||
private bool IsNumberic(string oText)
|
||||
{
|
||||
try
|
||||
{
|
||||
int var1 = Convert.ToInt32(oText);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user