C# Class ModernWPF.Messages.ChooseFolderMessage

Message for choosing a folder.
Inheritance: MessageBase
显示文件 Open project: soukoku/ModernWPF Class Usage Examples

Public Methods

Method Description
ChooseFolderMessage ( Action callback ) : System

Initializes a new instance of the ChooseFolderMessage class.

ChooseFolderMessage ( object sender, Action callback ) : System

Initializes a new instance of the ChooseFolderMessage class.

ChooseFolderMessage ( object sender, object target, Action callback ) : System

Initializes a new instance of the ChooseFolderMessage class.

DoCallback ( string folder ) : void

Does the callback to notify sender of selected folder.

HandleWithPlatform ( Window owner ) : void

Handles the ChooseFolderMessage on a window by showing a folder dialog based on the message options.

Method Details

ChooseFolderMessage() public method

Initializes a new instance of the ChooseFolderMessage class.
public ChooseFolderMessage ( Action callback ) : System
callback Action The callback when a folder is chosen.
return System

ChooseFolderMessage() public method

Initializes a new instance of the ChooseFolderMessage class.
public ChooseFolderMessage ( object sender, Action callback ) : System
sender object The message's original sender.
callback Action The callback when a folder is chosen.
return System

ChooseFolderMessage() public method

Initializes a new instance of the ChooseFolderMessage class.
public ChooseFolderMessage ( object sender, object target, Action callback ) : System
sender object The message's original sender.
target object The message's intended target.
callback Action The callback when a folder is chosen.
return System

DoCallback() public method

Does the callback to notify sender of selected folder.
public DoCallback ( string folder ) : void
folder string The folder.
return void

HandleWithPlatform() public method

Handles the ChooseFolderMessage on a window by showing a folder dialog based on the message options.
public HandleWithPlatform ( Window owner ) : void
owner System.Windows.Window The owner.
return void