public void RemoveItemFromReviewList()
 {
     App.KanjiDict.RemoveKanjiFromDictionary(Literal);
     App.CurrentReviewList.Kanji.Remove(Literal);
     if (HasCurrent)
         Index = Index;
     else if (GetMaxIndex() > -1)
         Index = GetMaxIndex();
     else {
         kanji = null;
         App.CurrentKanji = null;
         App.CurrentReviewList.Bookmark = 0;
     }
     App.ReviewList.Save();
 }
 // Code to execute when the application is activated (brought to foreground)
 // This code will not execute when the application is first launched
 private void Application_Activated(object sender, ActivatedEventArgs e)
 {
     var settingsStorage = IsolatedStorageSettings.ApplicationSettings;
     if (settingsStorage.Contains("LastViewedKanji") && settingsStorage["LastViewedKanji"].ToString() != string.Empty) {
         CurrentKanji = App.KanjiDict.GetKanjiFromDatabase(settingsStorage["LastViewedKanji"].ToString());
         if (settingsStorage.Contains("KanjiMode")) 
             KanjiMode = (Mode)settingsStorage["KanjiMode"];
         else
             KanjiMode = Mode.Flashcards;
         switch (KanjiMode) {
             case Mode.Flashcards:
                 KanjiDict.LoadFromDatabase(AppSettings.GetJLPTLevels());
                 break;
             case Mode.Review:
                 if (settingsStorage.Contains("ReviewList")) {
                     var result = ReviewList.KanjiLists.Where(k => k.Name == settingsStorage["ReviewList"].ToString());
                     if (result.Count() > 0) {
                         CurrentReviewList = result.First();
                         KanjiDict.LoadFromDatabase(CurrentReviewList.Kanji);
                     }
                 }
                 break;
             case Mode.Lookup:
                 if (settingsStorage.Contains("LookupKanji")) {
                     KanjiDict.LoadFromDatabase(settingsStorage["LookupKanji"] as List<string>);
                 }
                 break;
         }
         IsResumeKanji = true;
     } else {
         IsResumeKanji = false;
     }
 }