コード例 #1
0
ファイル: AppDelegate.cs プロジェクト: mnguye2s/cleverbook
        public override void DidEnterBackground(UIApplication application)
        {
            try{
                var wordRepository = new WordRepository();
                LocalNotification.RegisterNotification(wordRepository.GetWordsForNotification());

//				System.Diagnostics.Process.GetCurrentProcess ().CloseMainWindow ();
            }
            catch (System.Exception ex) {
                SmartLearningApplication.Instance.ContinueToWelcomeView();
            }
        }
コード例 #2
0
        public void Finish()
        {
            WordMeaning = "";
            CountString = "Done, congratulations!";
            NewWord     = "";
            if (Count > 0)
            {
                Count = 0;
            }

            if (VisibleAction != null)
            {
                VisibleAction();
            }

            if (SetHideCanCelButton != null)
            {
                SetHideCanCelButton();
            }

            ShowResultCommand.IsEnabled = false;
            Index = 0;
            if (learningWords != null)
            {
                learningWords.Clear();
            }

            if (learningMode == LearningMode.SupperMemo)
            {
                LoadLearningStatus();

//				//---- Setup notification
                var wordRepository = new WordRepository();
                LocalNotification.SetUpEvent(wordRepository.GetWordsForNotification());
            }
        }