예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #5
0
 public static bool?ShowErrorFormat(Window parrent, MessageBoxButton buttons, string format, params object[] args)
 {
     return(MessageBoxWPF.ShowError(parrent, buttons, string.Format(format, args)));
 }
예제 #6
0
 public static bool?ShowQuestion(Window parrent, MessageBoxButton buttons, string text)
 {
     return(MessageBoxWPF.ShowQuestion(parrent, buttons, Properties.Resources.T008, text));
 }