callm 1 жил өмнө
parent
commit
6dc26f3413

+ 9 - 9
FileWatcher/SOP.Designer.cs

@@ -43,7 +43,7 @@
             this.pr_detail = new System.Windows.Forms.Label();
             this.JPG = new System.Windows.Forms.RadioButton();
             this.pr_spec = new System.Windows.Forms.RichTextBox();
-            this.textBox1 = new System.Windows.Forms.TextBox();
+            this.li_code = new System.Windows.Forms.TextBox();
             this.label5 = new System.Windows.Forms.Label();
             this.SuspendLayout();
             // 
@@ -186,13 +186,13 @@
             this.pr_spec.TabIndex = 19;
             this.pr_spec.Text = "";
             // 
-            // textBox1
+            // li_code
             // 
-            this.textBox1.Enabled = false;
-            this.textBox1.Location = new System.Drawing.Point(218, 585);
-            this.textBox1.Name = "textBox1";
-            this.textBox1.Size = new System.Drawing.Size(582, 35);
-            this.textBox1.TabIndex = 21;
+            this.li_code.Enabled = false;
+            this.li_code.Location = new System.Drawing.Point(218, 585);
+            this.li_code.Name = "li_code";
+            this.li_code.Size = new System.Drawing.Size(582, 35);
+            this.li_code.TabIndex = 21;
             // 
             // label5
             // 
@@ -209,7 +209,7 @@
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(1945, 934);
-            this.Controls.Add(this.textBox1);
+            this.Controls.Add(this.li_code);
             this.Controls.Add(this.label5);
             this.Controls.Add(this.pr_spec);
             this.Controls.Add(this.JPG);
@@ -251,7 +251,7 @@
         private System.Windows.Forms.Label pr_detail;
         private System.Windows.Forms.RadioButton JPG;
         private System.Windows.Forms.RichTextBox pr_spec;
-        private System.Windows.Forms.TextBox textBox1;
+        private System.Windows.Forms.TextBox li_code;
         private System.Windows.Forms.Label label5;
     }
 }

+ 2 - 1
FileWatcher/SOP.cs

@@ -260,7 +260,7 @@ namespace FileWatcher
                 string IPAddress = "";
                 for (int i = 0; i < IpEntry.AddressList.Length; i++)
                 {
-                    if (IpEntry.AddressList[i].AddressFamily == AddressFamily.InterNetwork)
+                    if (IpEntry.AddressList[i].AddressFamily == AddressFamily.InterNetwork && IpEntry.AddressList[i].ToString().Contains("10.1"))
                     {
                         IPAddress = IpEntry.AddressList[i].ToString();
                     }
@@ -291,6 +291,7 @@ namespace FileWatcher
                         listr.Add(dic1);
                     }
                     map1.Add("ps_code", "");
+                    map1.Add("li_code", li_code.Text);
                     map1.Add("url", listr);
                     map.Add("success", true);
                     map.Add("data", map1);