C# 클래스 Catel.Modules.DownloadingModuleCatalog

ModuleCatalog that allows the downloading of all modules dynamically based on the ModuleInfo.Ref property.
상속: ModuleCatalog, IDownloadingModuleCatalog
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
CreateFromXamlAsync ( Uri builderResourceUri, Action completedCallback = null ) : DownloadingModuleCatalog

Creates a ModuleCatalog from a XAML that is located on the internet. This method creates the ModuleCatalog asynchronously.

LoadModule ( string moduleName, System.Action completedCallback ) : void

Loads a specific module.

보호된 메소드들

메소드 설명
InnerLoad ( ) : void

Does the actual work of loading the catalog. The base implementation does nothing.

비공개 메소드들

메소드 설명
DownloadModule ( ModuleInfo moduleInfo ) : void

Downloads the module. This method will automatically take care of the pending completed callbacks.

GetModuleUri ( ModuleInfo moduleInfo ) : Uri

Gets the Uri of the specified module.

LoadModules ( List modules, System.Action completedCallback ) : void

Loads a list of modules in the right order.

OnDownloadModuleCompleted ( object sender, OpenReadCompletedEventArgs e ) : void

Called when the download of a module has been completed.

OnModuleCatalogXmlCompleted ( object sender, DownloadStringCompletedEventArgs e ) : void

Called when the web client has finished downloading.

메소드 상세

CreateFromXamlAsync() 공개 정적인 메소드

Creates a ModuleCatalog from a XAML that is located on the internet. This method creates the ModuleCatalog asynchronously.
The is null.
public static CreateFromXamlAsync ( Uri builderResourceUri, Action completedCallback = null ) : DownloadingModuleCatalog
builderResourceUri System.Uri The builder resource URI.
completedCallback Action The completed callback, can be null.
리턴 DownloadingModuleCatalog

InnerLoad() 보호된 메소드

Does the actual work of loading the catalog. The base implementation does nothing.
protected InnerLoad ( ) : void
리턴 void

LoadModule() 공개 메소드

Loads a specific module.
The is null or whitespace. The is null.
public LoadModule ( string moduleName, System.Action completedCallback ) : void
moduleName string Name of the module.
completedCallback System.Action The completed callback.
리턴 void