Table of Contents

Method CreateWithButtons

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

CreateWithButtons(MessageBoxButtons)

Creates a PanelOkCancelButtons instance with the specified button configuration.

public static PanelOkCancelButtons CreateWithButtons(MessageBoxButtons buttons)

Parameters

buttons MessageBoxButtons

The MessageBoxButtons enumeration value that specifies the buttons to include.

Returns

PanelOkCancelButtons

A PanelOkCancelButtons configured with the specified buttons.

CreateWithButtons(params KnownButton[])

Creates a PanelOkCancelButtons instance with specified buttons.

public static PanelOkCancelButtons CreateWithButtons(params KnownButton[] buttons)

Parameters

buttons KnownButton[]

An array of KnownButton values indicating which buttons to include in the panel. The panel will automatically include OK, Apply, and Cancel buttons if specified.

Returns

PanelOkCancelButtons

A PanelOkCancelButtons instance containing the specified buttons.

Remarks

The method initializes a panel with OK, Apply, and Cancel buttons based on the presence of these values in the buttons array. Additional buttons specified in the array are also added to the panel.