Browse Source

反射的例子

yuzhengyang 8 years ago
parent
commit
c9f228c818

+ 1 - 0
Fork.Net/Waka.Lego/Form1.Designer.cs

@@ -40,6 +40,7 @@
             this.button1.TabIndex = 0;
             this.button1.Text = "button1";
             this.button1.UseVisualStyleBackColor = true;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
             // 
             // button2
             // 

+ 5 - 0
Fork.Net/Waka.Lego/Form1.cs

@@ -89,5 +89,10 @@ namespace Waka.Lego
             string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
             ShowMsg.Text = date;
         }
+
+        private void button1_Click(object sender, EventArgs e)
+        {
+
+        }
     }
 }

+ 1 - 1
Fork.Net/Waka.Lego/Program.cs

@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Threading.Tasks;
 using System.Windows.Forms;
-using Y.Utils.AttributeUtils;
+using Y.Utils.ReflectionUtils.AttributeUtils;
 
 namespace Waka.Lego
 {