|
@@ -61,8 +61,6 @@ namespace ST_LINK_MES
|
|
|
BinPath = uxBinFilePath.Text
|
|
|
};
|
|
|
currentSetting.Save(setting);
|
|
|
-
|
|
|
- var stopResult = SajetConnect.SajetTransClose();
|
|
|
}
|
|
|
|
|
|
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
|
@@ -160,13 +158,17 @@ namespace ST_LINK_MES
|
|
|
{
|
|
|
reportDatas.Add(logData.Key, logData.Value, true);
|
|
|
}
|
|
|
- SajetConnect.SajetTransReport(reportDatas);
|
|
|
+ this.Dispatcher.Invoke(() => {
|
|
|
+ SajetConnect.SajetTransReport(reportDatas);
|
|
|
+ });
|
|
|
|
|
|
if (!result.IsSuccess)
|
|
|
{
|
|
|
var errCode = GetErrorCode(result.Step);
|
|
|
//report
|
|
|
- SajetConnect.SajetTranFinishFail(errCode);
|
|
|
+ this.Dispatcher.Invoke(() => {
|
|
|
+ SajetConnect.SajetTranFinishFail(errCode);
|
|
|
+ });
|
|
|
resultDialog.MouseDown += ResultDialog_MouseDown;
|
|
|
resultDialog.ShowResult(false);
|
|
|
}
|
|
@@ -174,7 +176,9 @@ namespace ST_LINK_MES
|
|
|
if (result.IsSuccess)
|
|
|
{
|
|
|
//report
|
|
|
- SajetConnect.SajetTranFinishSuccess();
|
|
|
+ this.Dispatcher.Invoke(() => {
|
|
|
+ SajetConnect.SajetTranFinishSuccess();
|
|
|
+ });
|
|
|
resultDialog.MouseDown += ResultDialog_MouseDown;
|
|
|
resultDialog.ShowResult(true);
|
|
|
}
|