|
@@ -1696,7 +1696,7 @@ namespace MOKA_Factory_Tools
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
{
|
|
{
|
|
MessageBox.Show(ex.Message);
|
|
MessageBox.Show(ex.Message);
|
|
- return;
|
|
|
|
|
|
+ goto stop;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (int i = 0; i <= FunctionSettingNow.EnterFactoryRetry; i++)
|
|
for (int i = 0; i <= FunctionSettingNow.EnterFactoryRetry; i++)
|
|
@@ -1716,7 +1716,7 @@ namespace MOKA_Factory_Tools
|
|
ErrMsg = string.Format("{0} Enter factory fail, Please check the problem", SN);
|
|
ErrMsg = string.Format("{0} Enter factory fail, Please check the problem", SN);
|
|
Log.WriteErrorLog(ErrMsg);
|
|
Log.WriteErrorLog(ErrMsg);
|
|
ShowVerifyDelegate(ErrMsg);
|
|
ShowVerifyDelegate(ErrMsg);
|
|
- return;
|
|
|
|
|
|
+ goto stop;
|
|
}
|
|
}
|
|
|
|
|
|
//烧录SN
|
|
//烧录SN
|
|
@@ -5180,6 +5180,7 @@ namespace MOKA_Factory_Tools
|
|
{
|
|
{
|
|
GetLocalKeysCount();
|
|
GetLocalKeysCount();
|
|
}
|
|
}
|
|
|
|
+ stop:
|
|
timer1.Stop();
|
|
timer1.Stop();
|
|
usingTime = 0;
|
|
usingTime = 0;
|
|
EnableText(SNText);
|
|
EnableText(SNText);
|