LoadEmptyPagesForDisambiguationPage() public method

Load all pages for selected disambiguation page without additional informations (only list of them)
public LoadEmptyPagesForDisambiguationPage ( string parsedInput, int index, List pages ) : void
parsedInput string
index int
pages List
return void
Example #1
0
 /// <summary>
 /// SelectedIndexChanged listBox event handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void LbDisambPages_SelectedIndexChanged(object sender, EventArgs e)
 {
     LbPages.Items.Clear();
     if (fromParsedDump)
     {
         pagesEmpty = new List <string>();
         parser.LoadEmptyPagesForDisambiguationPage(parsedInput, LbDisambPages.SelectedIndex, pagesEmpty);
         LbPages.Items.AddRange(pagesEmpty.ToArray());
     }
     else
     {
         LbPages.Items.AddRange(((DisambiguationPageInfo)LbDisambPages.SelectedItem).pages.ToArray());
     }
     if (LbPages.Items.Count > 0)
     {
         LbPages.SelectedIndex = 0;
     }
 }