Table of Contents

Class InputDialog

Namespace
SampSharp.Entities.SAMP
Assembly
SampSharp.OpenMp.Entities.dll

Represents a dialog with an input field.

public class InputDialog : IDialog<InputDialogResponse>, IDialog
Inheritance
InputDialog
Implements
Inherited Members

Constructors

InputDialog()

Initializes a new instance of the InputDialog class.

public InputDialog()

InputDialog(string?, string?, string?, string?)

Initializes a new instance of the InputDialog class.

public InputDialog(string? caption, string? content, string? button1, string? button2 = null)

Parameters

caption string

The caption of the input dialog.

content string

The content of the input dialog.

button1 string

The left button text of the input dialog.

button2 string

The right button text of the input dialog.

Properties

Button1

Gets or sets the text on the left button of this input dialog.

public string? Button1 { get; set; }

Property Value

string

Button2

Gets or sets the text on the right button of this input dialog. If the value is null, the right button is hidden.

public string? Button2 { get; set; }

Property Value

string

Caption

Gets or sets the caption of this input dialog.

public string? Caption { get; set; }

Property Value

string

Content

Gets or sets the text above the input field in this dialog.

public string? Content { get; set; }

Property Value

string

IsPassword

Gets or sets a value indicating whether the input is a password.

public bool IsPassword { get; set; }

Property Value

bool

Methods

Translate(DialogResult)

Translates the specified dialogResult to a specialized response of type InputDialogResponse.

public InputDialogResponse Translate(DialogResult dialogResult)

Parameters

dialogResult DialogResult

The dialog result to translate.

Returns

InputDialogResponse

The translated dialog result.