瀏覽代碼

屏蔽显示时nlog加载的界面

cxs 1 年之前
父節點
當前提交
df4a50e21e
共有 2 個文件被更改,包括 11 次插入5 次删除
  1. 5 4
      OTSIncAMeasureApp/OTSIncAMeasureAppForm.cs
  2. 6 1
      OTSIncAMeasureApp/OTSMeasureOutputNlog.cs

+ 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)