|
|
@@ -44,7 +44,14 @@ namespace UAS_MES.Make
|
|
|
sncode.Focus();
|
|
|
asc.controllInitializeSize(this);
|
|
|
OperateResult.AppendText(">>请输入SN\n", Color.Green);
|
|
|
- InitPrint = new Thread(InPrint);
|
|
|
+ try
|
|
|
+ {
|
|
|
+ InitPrint = new Thread(InPrint);
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ MessageBox.Show(ex.Message);
|
|
|
+ }
|
|
|
SetLoadingWindow stw = new SetLoadingWindow(InitPrint, "初始化打印程序");
|
|
|
BaseUtil.SetFormCenter(stw);
|
|
|
stw.ShowDialog();
|