Ejemplo n.º 1
0
        public static bool?ShowInfo(Window parrent, MessageBoxButton buttons, string text)
        {
            SystemSounds.Asterisk.Play();
            MessageBoxWPF msg = new MessageBoxWPF();

            msg.ShowDialog(parrent, buttons, Properties.Resources.T005, text, SystemIcons.Information);
            return(msg.DialogResult);
        }
Ejemplo n.º 2
0
        public static bool?ShowError(Window parrent, MessageBoxButton buttons, string text)
        {
            SystemSounds.Hand.Play();
            MessageBoxWPF msg = new MessageBoxWPF();

            msg.ShowDialog(parrent, buttons, Properties.Resources.T007, text, SystemIcons.Error);

            return(msg.DialogResult);
        }
Ejemplo n.º 3
0
        public static bool?ShowWarning(Window parrent, MessageBoxButton buttons, string text)
        {
            SystemSounds.Exclamation.Play();
            MessageBoxWPF msg = new MessageBoxWPF();

            msg.ShowDialog(parrent, buttons, Properties.Resources.T006, text, SystemIcons.Warning);

            return(msg.DialogResult);
        }
Ejemplo n.º 4
0
        public static bool?ShowQuestion(Window parrent, MessageBoxButton buttons, string caption, string text)
        {
            SystemSounds.Asterisk.Play();
            MessageBoxWPF msg = new MessageBoxWPF();

            msg.ShowDialog(parrent, buttons, caption, text, SystemIcons.Question);

            return(msg.DialogResult);
        }