public void SetXY(int x, int y) { X = x; Y = y; OnSetXY?.Invoke(this, new SetXYEventArgs() { X = x, Y = y }); }
public void SetXY(int x, int y) { this.x = x; this.y = y; OnSetXY?.Invoke(this, new MyEventArgs() { X = x, Y = y }); }