Example #1
0
 // When a word list is deleted, remove it from the results view.
 void OnWordListDeleted(object sender, Sqlite.WordListEventArgs e)
 {
     for (int i = 0; i < results.Items.Count;)
     {
         var tag = results.Items[i].Tag;
         if (tag is ListInfo && ((ListInfo)tag).ID == e.SetID)
         {
             results.Items.RemoveAt(i);
         }
         else if (tag is WordSearchResult && ((WordSearchResult)tag).SetID == e.SetID)
         {
             results.Items.RemoveAt(i);
         }
         else
         {
             i++;
         }
     }
 }
Example #2
0
 // When a list is opened, move it to the front of the recent lists section.
 void OnWordListAccessed(object sender, Sqlite.WordListEventArgs e)
 {
     UpdateResults();
 }