Ejemplo n.º 1
0
        protected void StartOpenAnimation(CircleMenuItem menu, Indicator indicator, List <PointF> positions, List <PointF> indicatorPositions,
                                          List <PointF> springPositions, List <PointF> indicatorSpringPositions, int delay, Action afterEndAnimation)
        {
            //start open main menu animation with spring
            StartAnimation(menu,
                           positions,
                           AnimateDuration - delay,
                           delay,
                           null,
                           new Action(() => StartAnimation(menu,
                                                           springPositions,
                                                           SpringAnimateDuration,
                                                           0,
                                                           null,
                                                           afterEndAnimation)));

            //start open indicators animation with spring
            StartAnimation(indicator,
                           indicatorPositions,
                           AnimateDuration - delay,
                           delay,
                           null,
                           new Action(() => StartAnimation(indicator,
                                                           indicatorSpringPositions,
                                                           SpringAnimateDuration,
                                                           0)));
        }
Ejemplo n.º 2
0
 protected void StartCloseAnimation(CircleMenuItem menu, Indicator indicator, List <PointF> positions,
                                    List <PointF> indicatorPositions, int delay, Action afterEndAnimation)
 {
     //start hide main menu animation without spring
     StartAnimation(menu, positions, AnimateDuration - delay, 0, null, new Action(() => afterEndAnimation?.Invoke()));
     //start hide indicators animation without spring
     StartAnimation(indicator, indicatorPositions, AnimateDuration - delay, 0);
 }