|
|
@@ -44,14 +44,7 @@ namespace UAS_MES.Make
|
|
|
sncode.Focus();
|
|
|
asc.controllInitializeSize(this);
|
|
|
OperateResult.AppendText(">>请输入SN\n", Color.Green);
|
|
|
- try
|
|
|
- {
|
|
|
- InitPrint = new Thread(InPrint);
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
- MessageBox.Show(ex.Message);
|
|
|
- }
|
|
|
+ InitPrint = new Thread(InPrint);
|
|
|
SetLoadingWindow stw = new SetLoadingWindow(InitPrint, "初始化打印程序");
|
|
|
BaseUtil.SetFormCenter(stw);
|
|
|
stw.ShowDialog();
|
|
|
@@ -59,7 +52,14 @@ namespace UAS_MES.Make
|
|
|
|
|
|
private void InPrint()
|
|
|
{
|
|
|
- lbl = new ApplicationClass();
|
|
|
+ try
|
|
|
+ {
|
|
|
+ lbl = new ApplicationClass();
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ MessageBox.Show("未安装codesoft");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void sn_code_KeyDown(object sender, KeyEventArgs e)
|