C# Класс CmisSync.CmisTree.AsyncNodeLoader

Loads child nodes of the given root node
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AsyncNodeLoader ( RootFolder root, CmisRepoCredentials credentials, LoadChildrenDelegate method, CheckChildrenDelegate check ) : CmisSync.Lib.Cmis

This class can be used to load children nodes asynchronous in another thread

Cancel ( ) : void

Cancels the async loading procedure

Load ( Node node ) : void

Enqueues the given node to be loaded asynchronously

MergeFolderTrees ( Node node, List children ) : void

Merges the given new child list into the existing childs of the given node

MergeNewNodeIntoOldNode ( Node oldNode, Node newNode ) : void

Merges the state of the new node into the old node, excerpt the children

Приватные методы

Метод Описание
DoWork ( object sender, DoWorkEventArgs e ) : void
Finished ( object sender, RunWorkerCompletedEventArgs e ) : void
Load ( ) : void
SetNodeTreeStatus ( Node node, LoadingStatus status ) : void

Описание методов

AsyncNodeLoader() публичный Метод

This class can be used to load children nodes asynchronous in another thread
public AsyncNodeLoader ( RootFolder root, CmisRepoCredentials credentials, LoadChildrenDelegate method, CheckChildrenDelegate check ) : CmisSync.Lib.Cmis
root RootFolder The repository Node
credentials CmisSync.Lib.Config.CmisRepoCredentials The server crendentials to load children for the given Cmis Repo
method LoadChildrenDelegate Function for loading nodes
check CheckChildrenDelegate
Результат CmisSync.Lib.Cmis

Cancel() публичный Метод

Cancels the async loading procedure
public Cancel ( ) : void
Результат void

Load() публичный Метод

Enqueues the given node to be loaded asynchronously
public Load ( Node node ) : void
node Node to be loaded next
Результат void

MergeFolderTrees() публичный статический Метод

Merges the given new child list into the existing childs of the given node
public static MergeFolderTrees ( Node node, List children ) : void
node Node
children List
Результат void

MergeNewNodeIntoOldNode() публичный статический Метод

Merges the state of the new node into the old node, excerpt the children
public static MergeNewNodeIntoOldNode ( Node oldNode, Node newNode ) : void
oldNode Node
newNode Node
Результат void