public AddButton ( string text, string val ) : void | ||
text | string | The text of the button |
val | string | The return value in case this button is clicked |
return | void |
public void AddButton(string text, string val)
{
if (text == null)
throw new ArgumentNullException("text", "Text of a button cannot be null");
if (val == null)
throw new ArgumentNullException("val", "Value of a button cannot be null");
var button = new FAMessageBoxButton(text, val);
AddButton(button);
}