Beispiel #1
0
 /// <summary>
 ///     See if the user can remember the English spelling of the Dutch word
 /// </summary>
 void TestAgainstTarget()
 {
     _testNative = false;
     InvokeOnMainThread(delegate
     {
         _targetWord.GrowWord();
         UIView.Animate(0.6, 0, UIViewAnimationOptions.TransitionCurlUp,
                        () =>
         {
             _nativeWord.Frame = new CGRect(0, -250, View.Frame.Width, 30);
             _targetWord.Frame = new CGRect(0, 0, View.Frame.Width, 30);
         }, () =>
         {
             btnSkipTimer.SetTitle("Skip", UIControlState.Normal);
             btnSkipTimer.BackgroundColor = "F2C500".ToUIColor();
             _answerView.SetTargetWord(_currentWord.Native);
             ShowAnswerView();
         });
     });
 }
Beispiel #2
0
        /// <summary>
        ///     See if the user can remember the Dutch spelling of the English word
        /// </summary>
        void TestAgainstNative()
        {
            _testNative = true;

            InvokeOnMainThread(delegate
            {
                _nativeWord.GrowWord();
                CGAffineTransform transform = CGAffineTransform.MakeIdentity();
                transform.Scale(0f, 0f);

                UIView.Animate(0.6, 0, UIViewAnimationOptions.CurveEaseIn,
                               () =>
                {
                    _nativeWord.Frame     = new CGRect(0, 0, View.Frame.Width, 30);
                    _targetWord.Transform = transform;
                }, () =>
                {
                    btnSkipTimer.SetTitle("Skip", UIControlState.Normal);
                    btnSkipTimer.BackgroundColor = "F2C500".ToUIColor();
                    _answerView.SetTargetWord(_currentWord.Target);
                    ShowAnswerView();
                });
            });
        }