C# Class WixSharp.UIExtensions

Show file Open project: Eun/WixSharp Class Usage Examples

Public Methods

Method Description
GetDirectoryPath ( this session, string name ) : string

Gets the target system directory path based on specified directory name (MSI Directory table).

LocalizeWith ( this control, string>.Func localize ) : Control

Localizes the control its contained T:System.Windows.Forms.Control.Text from the specified localization delegate 'localize'.

The method substitutes both localization file (*.wxl) entries and MSI properties contained by the input string with their translated/converted values.

Note that both localization entries and MSI properties must be enclosed in the square brackets (e.g. "[ProductName] Setup", "[InstallDirDlg_Title]").

LocalizeWith ( this textToLocalize, string>.Func localize ) : string

Localizes the string from the specified localization delegate 'localize'.

The method substitutes both localization file (*.wxl) entries and MSI properties contained by the input string with their translated/converted values.

Note that both localization entries and MSI properties must be enclosed in the square brackets (e.g. "[ProductName] Setup", "[InstallDirDlg_Title]").

Private Methods

Method Description
ClearChildren ( this control ) : Control
GetAssiciatedIcon ( this extension ) : Icon
GetDirectoryPathParts ( this session, string name ) : string[]
UserOrDefaultContentOf ( string extenalFilePath, string srcDir, string outDir, string fileName, object defaultContent ) : string

Method Details

GetDirectoryPath() public static method

Gets the target system directory path based on specified directory name (MSI Directory table).
public static GetDirectoryPath ( this session, string name ) : string
session this The session.
name string The name.
return string

LocalizeWith() public static method

Localizes the control its contained T:System.Windows.Forms.Control.Text from the specified localization delegate 'localize'.

The method substitutes both localization file (*.wxl) entries and MSI properties contained by the input string with their translated/converted values.

Note that both localization entries and MSI properties must be enclosed in the square brackets (e.g. "[ProductName] Setup", "[InstallDirDlg_Title]").
public static LocalizeWith ( this control, string>.Func localize ) : Control
control this The control.
localize string>.Func The localize.
return System.Windows.Forms.Control

LocalizeWith() public static method

Localizes the string from the specified localization delegate 'localize'.

The method substitutes both localization file (*.wxl) entries and MSI properties contained by the input string with their translated/converted values.

Note that both localization entries and MSI properties must be enclosed in the square brackets (e.g. "[ProductName] Setup", "[InstallDirDlg_Title]").
public static LocalizeWith ( this textToLocalize, string>.Func localize ) : string
textToLocalize this The text to localize.
localize string>.Func The localize.
return string