Пример #1
0
        public void Reset(ISessionCircle sessionCircle, ISessionCircleList sessionCircles)
        {
            var position = sessionCircles.NonCollidingPoint(DefaultSize);

            sessionCircle.X = position.X;
            sessionCircle.Y = position.Y;
        }
Пример #2
0
        private void SelectSessionCircle(ISessionCircle sessionCircle)
        {
            if (sessionCircle == null)
            {
                return;
            }

            sessionCircles.DeselectAll();
            sessionCircle.Selected = true;

            sessionDetail.SessionCircles = sessionCircles;
            sessionDetail.SessionCircle  = sessionCircle;
        }
Пример #3
0
 private void BeginMove(ISessionCircle toTrack)
 {
     this.toTrack?.Enable();
     this.toTrack = toTrack;
     this.toTrack.Disable();
 }
Пример #4
0
 private void EndMove()
 {
     this.toTrack?.Enable();
     this.toTrack = null;
 }