protected virtual bool OnMoving(int x, int y)
        {
            var e = new RegionMovingEventArgs(x, y);
            var handler = Moving;
            if (handler != null)
            {
                handler(this, e);
            }

            return !e.Cancel;
        }
Beispiel #2
0
        protected virtual bool OnMoving(int x, int y)
        {
            var e       = new RegionMovingEventArgs(x, y);
            var handler = this.Moving;

            if (handler != null)
            {
                handler(this, e);
            }

            return(!e.Cancel);
        }