Inheritance: MessageDescription
        public static AlertButton GenericAlert(string icon, string primaryText, string secondaryText, int defaultButton, params AlertButton[] buttons)
        {
            GenericMessage message = new GenericMessage()
            {
                Icon          = icon,
                Text          = primaryText,
                SecondaryText = secondaryText,
                DefaultButton = defaultButton
            };

            foreach (AlertButton but in buttons)
            {
                message.Buttons.Add(but);
            }
            //3tk hack
            //return messageService.GenericAlert (message);
            return(new AlertButton(primaryText));
        }
Esempio n. 2
0
 public static AlertButton GenericAlert(GenericMessage message)
 {
     //3tk hack
     return new AlertButton(message.Text);
     //return messageService.GenericAlert (message);
 }
Esempio n. 3
0
 public static AlertButton GenericAlert(string icon, string primaryText, string secondaryText, int defaultButton, params AlertButton[] buttons)
 {
     GenericMessage message = new GenericMessage () {
         Icon = icon,
         Text = primaryText,
         SecondaryText = secondaryText,
         DefaultButton = defaultButton
     };
     foreach (AlertButton but in buttons)
         message.Buttons.Add (but);
     //3tk hack
     //return messageService.GenericAlert (message);
     return new AlertButton(primaryText);
 }
 public static AlertButton GenericAlert(GenericMessage message)
 {
     //3tk hack
     return(new AlertButton(message.Text));
     //return messageService.GenericAlert (message);
 }