Browse Source

屏蔽显示时nlog加载的界面

cxs 10 months ago
parent
commit
df4a50e21e

+ 5 - 4
OTSIncAMeasureApp/OTSIncAMeasureAppForm.cs

@@ -103,14 +103,15 @@ namespace OTSMeasureApp
         public FileSystemWatcher fileWatcher = new FileSystemWatcher(Application.StartupPath+ @"\Config\SysData");
         public OTSIncAMeasureAppForm()
         {
-            
+
+            th.Start();
 
             InitializeComponent();
 
+          
+
+
 
-           
-            th.Start();
-            
             //国际化
             lan = new OTSCommon.Language(this);
             table = lan.GetNameTable(this.Name);

+ 6 - 1
OTSIncAMeasureApp/OTSMeasureOutputNlog.cs

@@ -42,13 +42,18 @@ namespace OTSMeasureApp
             combox_NlogType.Items.Add("Error");
             combox_NlogType.Items.Add("Fatal");
             combox_NlogType.SelectedIndex = 0;
-           
+
 
             //国际
             //string aa=this.Name;
             //lan = new OTSCommon.Language(this);
             //table = lan.GetNameTable(this.Name);
             //button_Clear.Text = table["button_clear"].ToString();
+
+            //this.BeginInvoke(new Action(() => {
+            //    this.Hide();
+            //    this.Opacity = 1;
+            //}));
         }
 
         private void button_Test_Click(object sender, EventArgs e)