Table of Contents

Class MessageDialog

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

Represents a dialog with a message.

public class MessageDialog : IDialog<MessageDialogResponse>, IDialog
Inheritance
MessageDialog
Implements
Inherited Members

Constructors

MessageDialog(string?, string?, string?, string?)

Initializes a new instance of the MessageDialog class.

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

Parameters

caption string

The caption.

content string

The content.

button1 string

The text on the left button.

button2 string

The text on the right button. If the value is null, the right button is hidden.

Properties

Button1

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

public string? Button1 { get; set; }

Property Value

string

Button2

Gets or sets the text on the right button of this message 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 message dialog.

public string? Caption { get; set; }

Property Value

string

Content

Gets or sets the content of this message dialog.

public string? Content { get; set; }

Property Value

string