Exemple #1
0
        private void FindFiles()
        {
            //object spObject = ((ExplorerNodeBase)Program.Window.Explorer.SelectedNode).Tag;

            ItemView.Items.Clear();
            ItemView.BeginUpdate();

            Program.Window.toolStripStatusLabel.Text = "Start load";
            Program.Window.toolStripStatusLabel.Text = String.Empty;

            toolStripTop.Enabled = false;
            ItemView.Enabled     = false;
            panelBottom.Visible  = true;

            this.loadWorker = new LoadWorker();
            //this.loadWorker.Add += new LoadWorker.AddEvent(this.loadWorker_Add);
            this.loadWorker.RunWorkerCompleted        += new RunWorkerCompletedEventHandler(this.backgroundWorker_RunWorkerCompleted);
            this.loadWorker.ProgressChanged           += new ProgressChangedEventHandler(this.backgroundWorker_ProgressChanged);
            this.loadWorker.WorkerSupportsCancellation = true;


            LoadWorkerParameters param = new LoadWorkerParameters();

            param.Url               = SelectedNode.BrowserUrl;
            param.spType            = SelectedNode.Tag.GetType();
            param.IncludeSubSites   = includeSubSites;
            param.IncludeSubFolders = includeSubFolders;

            this.loadWorker.RunWorkerAsync(param);
        }