Example #1
0
        private void SpinMover_MouseClick(object sender, MouseEventArgs e)
        {
            lastClick = new Point(e.X, e.Y);
            SpunEventArgs sea = new SpunEventArgs(Math.Atan2(e.Y, e.X));

            Refresh();
            OnSpun(sea);
        }
Example #2
0
        protected virtual void OnSpun(SpunEventArgs e)
        {
            SpunEventHandler handler = Spun;

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