Method AddButton
AddButton(Button)
Adds a Button to the bottom of the dialog.
public void AddButton(Button button)
Parameters
buttonButtonThe button to add. Its lifetime and layout will be managed by the dialog.
Remarks
Buttons are positioned according to ButtonAlignment and ButtonAlignmentModes. The last button added becomes the default (IsDefault = true).
When a button is pressed, Result is set to the button's index (0-based, in order of addition) and the dialog closes.