示例#1
0
        public void Click(int x, int y)
        {
            Console.WriteLine($"Click button on {x},{y}");
            ClickEventArgs args = new ClickEventArgs()
            {
                X = x, Y = y
            };

            //触发onClick事件
            OnClick(this, args);
        }
示例#2
0
        public void Click(int x, int y)
        {
            //触发Click事件
            ClickEventArgs args = new ClickEventArgs()
            {
                X = x,
                Y = y
            };

            OnClick(this, args);
        }
示例#3
0
 void Btn_OnClick2(object sender, ClickEventArgs args)
 {
     Console.WriteLine("Hello,World!");
 }
示例#4
0
 void Btn_OnClick(object sender, ClickEventArgs args)
 {
     Console.WriteLine($"Button被点击了!");
 }
示例#5
0
 static void Btn_OnClick(object sender, ClickEventArgs args)
 {
     Console.WriteLine($"Button被点击了,X={args.X},Y={args.Y}.");
 }