コード例 #1
0
 public void ContinueToRandomTestView()
 {
     if (RandomTestViewModel == null)
     {
         RandomTestViewModel = new RandomTestViewModel();
     }
     RunOnUIThread(() => _navigator.NavigateTo <RandomTestViewModel> ());
 }
コード例 #2
0
        public void ContinueToRootView()
        {
            if (RootViewModel == null)
            {
                RootViewModel = new RootViewModel();
            }

            if (LexiconViewModel == null)
            {
                LexiconViewModel = new LexiconViewModel();
            }

            if (NewWordViewModel == null)
            {
                NewWordViewModel = new NewWordViewModel();
            }

            if (LearningViewModel == null)
            {
                LearningViewModel = new LearningViewModel();
            }
            //LearningViewModel.LoadData ();

            if (RandomTestViewModel == null)
            {
                RandomTestViewModel = new RandomTestViewModel();
            }

            if (IntroductionViewModel == null)
            {
                IntroductionViewModel = new IntroductionViewModel();
            }

            RunOnUIThread(() => {
                _navigator.NavigateTo <RootViewModel> ();
            });
        }