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); }
protected virtual void OnSpun(SpunEventArgs e) { SpunEventHandler handler = Spun; if (handler != null) { handler?.Invoke(this, e); } }