コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: MessageDialog.cs プロジェクト: Gaushick/xwt
        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);
        }