Beispiel #1
0
 private void MoveIndicator(object ignore)
 {
     if (!_disposed && _waiting)
     {
         _indicator.Bounds = new Rectangle(-40, Bounds.Height * 2 / 3, 60, 10);
         _indicator.Animate(Animation.Move(new Point(Bounds.Right - 20, _indicator.Bounds.Top), 0, indicatorDuration));
         Application.DelayAction(indicatorDuration, (object)null, MoveIndicator);
     }
 }
Beispiel #2
0
        private void UpdateHilight(Application app)
        {
            int x = SafetyViewMargin.HorizontalActionMargin;
            int w = app.Root.Bounds.Width - 2 * x;
            int y = 180 + _curColor * 50 - 5;
            int h = 50;

            _hilightView.Animate(Animation.SetBounds(new Rectangle(x, y, w, h), 0, TimeSpan.FromMilliseconds(250)));
            _colorView.Update("The currently selected color is " + colors[_curColor], _colorView.Style, colors[_curColor]);
        }