示例#1
0
 public void SetXY(int x, int y)
 {
     X = x;
     Y = y;
     OnSetXY?.Invoke(this, new SetXYEventArgs()
     {
         X = x, Y = y
     });
 }
示例#2
0
        public void SetXY(int x, int y)
        {
            this.x = x;
            this.y = y;

            OnSetXY?.Invoke(this, new MyEventArgs()
            {
                X = x, Y = y
            });
        }