Пример #1
0
        public static DialogResult Show(string message, string title, Buttons buttons, Icone icon, AnimateStyle style)
        {
            MessageBoxBlack _msgBox = createMsgBox(message, title, buttons, icon, style);

            _msgBox.ShowDialog();

            return(_msgBox._buttonResult);
        }
Пример #2
0
        public static void Show(string message)
        {
            MessageBoxBlack _msgBox = createMsgBox(message, "Mensagem", Buttons.OK, Icone.Info, AnimateStyle.FadeIn);

            _msgBox.ShowDialog();

            MessageBeep(0);
        }
Пример #3
0
        public static void Advertencia(string message, string title = null)
        {
            MessageBoxBlack _msgBox = createMsgBox(message, title, Buttons.OK, Icone.Exclamation, AnimateStyle.FadeIn);

            _msgBox.ShowDialog();

            MessageBeep(0);
        }
Пример #4
0
        public static void Show(string message, string title)
        {
            MessageBoxBlack _msgBox = createMsgBox(message, title, Buttons.OK, Icone.Info, AnimateStyle.FadeIn);

            _msgBox.ShowDialog();

            MessageBeep(0);

            //_msgBox = new MessageBoxBlack();
            //_msgBox.lblMessage.Text = message;
            //_msgBox.lblTitle.Text = title;
            //_msgBox.Size = MessageBoxBlack.MessageSize(message);
            //_msgBox.ShowDialog();
        }
Пример #5
0
        public static DialogResult Show(string message, string title, Buttons buttons, Icone icon)
        {
            MessageBoxBlack _msgBox = createMsgBox(message, title, buttons, icon, AnimateStyle.FadeIn);

            _msgBox.ShowDialog();

            //_msgBox = new MessageBoxBlack();
            //_msgBox.lblMessage.Text = message;
            //_msgBox.lblTitle.Text = title;

            //MessageBoxBlack.InitButtons(buttons);
            //MessageBoxBlack.InitIcon(icon);

            //_msgBox.Size = MessageBoxBlack.MessageSize(message);
            //_msgBox.ShowDialog();

            MessageBeep(0);

            return(_msgBox._buttonResult);
        }