Esempio n. 1
0
        public void Reset()
        {
            if (_answerView == null)
            {
                BuildViews();
            }
            else
            {
                _answerView.Alpha = 1;
                _targetWord.Alpha = 1;
                _nativeWord.Alpha = 1;
                GetNextVocabulary();

                _answerView.Reset();
                _answerView.Hidden = true;
            }

            if (_testNative)
            {
                RestoreViewFromTestAgainstNative();
            }
            else
            {
                RestoreViewFromTestAgainTarget();
            }
        }
Esempio n. 2
0
        public override void ViewDidAppear(bool animated)
        {
            base.ViewDidAppear(animated);

            if (_answerView == null)
            {
                _answerView = new AnswerView(new CGRect(0, 180, View.Bounds.Width, 220))
                {
                    Hidden = true
                }
            }
            ;

            _answerView.Reset();
            _answerView.Hidden = true;

            if (_testNative)
            {
                RestoreViewFromTestAgainstNative();
            }
            else
            {
                RestoreViewFromTestAgainTarget();
            }
        }