Table of Contents

Class DialogFactory

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains static methods which call standard dialogs.

public static class DialogFactory
Inheritance
DialogFactory

Properties

Handler

Gets or sets IDialogFactoryHandler object used to create dialogs.

Methods

AskBrightnessAsync(Action<byte>, byte)

Shows dialog which asks to enter the brightness value. Possible values are 0..255.

AskByteAsync(string?, Action<byte>, byte, byte)

Shows dialog which asks to enter a byte value.

AskIntAsync(string?, Action<int>, int, int, int)

Shows dialog which asks to enter a byte value.

AskLightnessAsync(Action<byte>, byte)

Shows dialog which asks to enter the lightness value. Possible values are 0..200.

AskTextAsync(string, Action<string>, string?)

Displays a prompt to the user with a specified title and an optional default value, and invokes a callback with the user's input.

AskTransparencyAsync(Action<byte>, byte)

Shows dialog which asks to enter the transparency value. Possible values are 0..255.

ConvertButtons(MessageBoxButtons)

Converts a MessageBoxButtons enumeration value to an array of KnownButton values.

EditColumnsWithListEditor(ListView)

Edits Columns with list editor.

EditItemsWithListEditor(ListView)

Edits Items with list editor.

EditItemsWithListEditor(StatusBar?)

Edits Panels with list editor.

EditItemsWithListEditor<T>(ListControl<T>)

Edits Items with list editor.

EditPropertyWithListEditor(object?, PropertyInfo?)

Edits property with list editor.

EditPropertyWithListEditor(object?, string)

Edits property with list editor.

EditWithListEdit(object?, EventArgs)

Used as event handler.

GetNumberFromUserAsync(LongFromUserParams)

Shows a dialog asking the user for numeric input.

GetTextFromUserAsync(TextFromUserParams)

Popups a dialog box with a title, message and input box. The user may type in text and press 'OK' to return this text, or press 'Cancel' to return the empty string.

ShowCriticalMessage(string, Exception?)

Shows critical message on the screen using any possible way.

ShowDeveloperTools()

Shows developer tools window.

ShowRunTerminalCommandDlg(string?)

Shows "Run terminal command" dialog.

ToDialogResult(KnownButton?)

Converts a KnownButton value to its corresponding DialogResult.