Beispiel #1
0
 /// <summary>
 /// This class can be used to load children nodes asynchronous in another thread
 /// </summary>
 /// <param name="root">The repository Node</param>
 /// <param name="credentials">The server crendentials to load children for the given Cmis Repo</param>
 /// <param name="method">Function for loading nodes</param>
 public AsyncNodeLoader(RootFolder root, CmisRepoCredentials credentials, LoadChildrenDelegate method, CheckChildrenDelegate check)
 {
     this.root = root;
     repoCredentials = credentials;
     this.actualNode = null;
     this.worker = new BackgroundWorker();
     this.method = method;
     this.check = check;
     this.worker.WorkerReportsProgress = false;
     this.worker.WorkerSupportsCancellation = true;
     this.worker.DoWork += new DoWorkEventHandler(DoWork);
     this.worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(Finished);
 }
Beispiel #2
0
 /// <summary>
 /// This class can be used to load children nodes asynchronous in another thread
 /// </summary>
 /// <param name="root">The repository Node</param>
 /// <param name="credentials">The server crendentials to load children for the given Cmis Repo</param>
 /// <param name="method">Function for loading nodes</param>
 public AsyncNodeLoader(RootFolder root, CmisRepoCredentials credentials, LoadChildrenDelegate method, CheckChildrenDelegate check)
 {
     this.root       = root;
     repoCredentials = credentials;
     this.actualNode = null;
     this.worker     = new BackgroundWorker();
     this.method     = method;
     this.check      = check;
     this.worker.WorkerReportsProgress      = false;
     this.worker.WorkerSupportsCancellation = true;
     this.worker.DoWork             += new DoWorkEventHandler(DoWork);
     this.worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(Finished);
 }