コード例 #1
0
        public void ContinueToNewWordView(ViewMode viewMode = ViewMode.AddNew, int clientId = 0)
        {
            NewWordViewModel = new NewWordViewModel()
            {
                ViewMode = viewMode, ClientId = clientId
            };
            NewWordViewModel.SetEditMode();

            RunOnUIThread(() => _navigator.NavigateTo <NewWordViewModel>());
        }
コード例 #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> ();
            });
        }