This commit is contained in:
@@ -586,8 +586,11 @@ namespace 全自动水压检测仪
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show($"加载数据失败:{ex.Message}", "错误",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
|
||||
LogHelper.Error($"[Report_Load - Report_Load]: {ex.Message}{Environment.NewLine}{ex.StackTrace}");
|
||||
|
||||
//MessageBox.Show($"加载数据失败:{ex.Message}", "错误",
|
||||
// MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
BeginInvoke(new Action(Close));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -349,8 +349,9 @@ namespace 全自动水压检测仪
|
||||
{
|
||||
SafeInvoke(() =>
|
||||
{
|
||||
MessageBox.Show($"加载数据失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
});
|
||||
LogHelper.Error($"[LoadData2] : {ex.Message}{Environment.NewLine}{ex.StackTrace}");
|
||||
//MessageBox.Show($"加载数据失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
});
|
||||
}
|
||||
}
|
||||
//// 编辑按钮点击事件处理
|
||||
|
||||
Reference in New Issue
Block a user