浏览代码

反射的例子

yuzhengyang 8 年之前
父节点
当前提交
c9f228c818
共有 3 个文件被更改,包括 7 次插入1 次删除
  1. 1 0
      Fork.Net/Waka.Lego/Form1.Designer.cs
  2. 5 0
      Fork.Net/Waka.Lego/Form1.cs
  3. 1 1
      Fork.Net/Waka.Lego/Program.cs

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