Sfoglia il codice sorgente

打开一码到底可能有问题

BourneCao 3 anni fa
parent
commit
d778b3cb04
1 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. 10 2
      CarMeterSystem/frmMain.cs

+ 10 - 2
CarMeterSystem/frmMain.cs

@@ -230,8 +230,16 @@ namespace CarMeterSystem
                 PbCache.bussinessTypeName = "";
                 PbCache.bussinessTypeCode = "";
 
-                
-                fcc.ShowDialog();
+                try
+                {
+                    if(fcc.Visible == false)
+                    {
+                        fcc.ShowDialog();
+                    }
+                }
+                catch
+                {
+                }
                 fcc.init();
             }
         }