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(); } }
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()); } }