public Form1()
        {
            InitializeComponent();

            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;
            OutputClusters = new XElement("Clusters");
            wikiCollection = new WikiCollection();

            IncrementPagesLoaded = new IncrementPagesLoadedDelegate(IncrementPagesLoadedMethod);
            IncrementPagesLoadedByVal = new IncrementPagesLoadedByValDelegate(IncrementPagesLoadedByValMethod);
            CheckSiteLoaded = new CheckSiteLoadedDelegate(CheckSiteLoadedMethod);
            CheckTitlesLoaded = new CheckPageTitlesLoadedDelegate(CheckPageTitlesLoadedMethod);
            CheckTokenized = new CheckTokenizedDelegate(CheckTokenizedMethod);
            CheckCheckBox4 = new CheckCheckBox4Delegate(CheckCheckBox4Method);
            CheckCheckBox5 = new CheckCheckBox5Delegate(CheckCheckBox5Method);
            AddPageText = new AddPageTextDelegate(AddPageTextMethod);
            UpdateText = new UpdateTextDelegate(UpdateTextMethod);
            AddClusters = new AddClustersDelegate(AddClustersMethod);
            //Task.Factory.StartNew(LoadPages);
            Task.Factory.StartNew(LoadWikipediaXML);

            treeView1.Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold | FontStyle.Underline);
            //treeView1.BackColor = Color.Blue;
            /*
            WikiConnection wiki = new WikiConnection("localhost");

            GetPage page = new GetPage(wiki, "", "List of trigonometric identities");
            CommandResult result = page.Execute();*/
        }
        public Form1()
        {
            InitializeComponent();

            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;

            wikiCollection = new WikiCollection();

            IncrementPagesLoaded = new IncrementPagesLoadedDelegate(IncrementPagesLoadedMethod);
            IncrementPagesLoadedByVal = new IncrementPagesLoadedByValDelegate(IncrementPagesLoadedByValMethod);
            CheckSiteLoaded = new CheckSiteLoadedDelegate(CheckSiteLoadedMethod);
            CheckTitlesLoaded = new CheckPageTitlesLoadedDelegate(CheckPageTitlesLoadedMethod);
            CheckTokenized = new CheckTokenizedDelegate(CheckTokenizedMethod);
            CheckCheckBox4 = new CheckCheckBox4Delegate(CheckCheckBox4Method);
            CheckCheckBox5 = new CheckCheckBox5Delegate(CheckCheckBox5Method);
            AddPageText = new AddPageTextDelegate(AddPageTextMethod);
            UpdateText = new UpdateTextDelegate(UpdateTextMethod);
            AddClusters = new AddClustersDelegate(AddClustersMethod);
            //Task.Factory.StartNew(LoadPages);
            Task.Factory.StartNew(LoadWikipediaXML);

            /*
            WikiConnection wiki = new WikiConnection("localhost");

            GetPage page = new GetPage(wiki, "", "List of trigonometric identities");
            CommandResult result = page.Execute();*/
        }