Method AddButton
AddButton(Button)
public void AddButton(Button dialogButton)
Parameters
dialogButtonButtonThe Dialog 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, the dialog's Accepting event is raised.