// Default methods public void Generate() { if (generatedIndexList.Count == wl.GetCount()) { ResetUsedIndexes(); } if (wl.GetCount() > 0) { int index = -1; do { we = wl.GetRandomWord(); index = wl.GetIndexOf(we); } while (generatedIndexList.Contains(index)); } }
public void SaveWordList(WordList wl) { if ((wl.GetCount() > 0) && (bChanged))// No use otherwise { PreSaveProcess(); Save(wl); } }
public WordListDialog(WordList w) : this() { FormMaintenance.GetInstance().RegisterWordListDialog(this); bIsUpdated = false; bIsNormalFlow = true; wl = w; // Add entries to list foreach (WordEntry we in wl) { lstWordList.Items.Add(we.GetWord()); } lblCount.Text = wl.GetCount().ToString(); }