static Command GenericAlert(WindowFrame parent, Xwt.Drawing.Image icon, string primaryText, string secondaryText, int defaultButton, params Command[] buttons) { GenericMessage message = new GenericMessage() { Icon = icon, Text = primaryText, SecondaryText = secondaryText, DefaultButton = defaultButton }; foreach (Command but in buttons) { message.Buttons.Add(but); } return(GenericAlert(parent, message)); }
static Command GenericAlert(WindowFrame parent, Xwt.Drawing.Image icon, string primaryText, string secondaryText, int defaultButton, params Command[] buttons) { GenericMessage message = new GenericMessage () { Icon = icon, Text = primaryText, SecondaryText = secondaryText, DefaultButton = defaultButton }; foreach (Command but in buttons) message.Buttons.Add (but); return GenericAlert (parent, message); }