Наследование: System.Windows.Controls.ChildWindow
Пример #1
0
 public static void Show(string caption, string message, string yesButtonText, string noButtonText, string cancelButtonText, MessageBoxType messageBoxType, Action yesAction = null, Action noAction = null, Action cancelAction = null)
 {
     var messageBox = new SuperMessageBox(caption, message, yesButtonText, noButtonText, cancelButtonText, messageBoxType, yesAction, noAction, cancelAction);
     messageBox.Show();
 }
Пример #2
0
 public static void ShowWarning(string caption, string message, string yesButtonText, string noButtonText, Action yesAction, Action noAction = null)
 {
     var messageBox = new SuperMessageBox(caption, message, yesButtonText, noButtonText, MessageBoxType.Warning, yesAction, noAction);
     messageBox.Show();
 }
Пример #3
0
 public static void ShowInformation(string caption, string message, Action callback = null)
 {
     var messageBox = new SuperMessageBox(caption, message, MessageBoxType.Information, callback);
     messageBox.Show();
 }
Пример #4
0
 public static void ShowConfirmation(string caption, string message, Action okayAction, Action cancelAction = null)
 {
     var messageBox = new SuperMessageBox(caption, message, "OK", "Cancel", MessageBoxType.Confirmation, okayAction, cancelAction);
     messageBox.Show();
 }
Пример #5
0
 public static void ShowWarning(string caption, string message, Action okayAction, Action cancelAction = null) 
 {
     var messageBox = new SuperMessageBox(caption, message, MessageBoxType.Warning, okayAction, cancelAction);
     messageBox.Show();
 }
Пример #6
0
        public static void Show(string caption, string message, string yesButtonText, string noButtonText, string cancelButtonText, MessageBoxType messageBoxType, Action yesAction = null, Action noAction = null, Action cancelAction = null)
        {
            var messageBox = new SuperMessageBox(caption, message, yesButtonText, noButtonText, cancelButtonText, messageBoxType, yesAction, noAction, cancelAction);

            messageBox.Show();
        }
Пример #7
0
        public static void ShowInformation(string caption, string message, Action callback = null)
        {
            var messageBox = new SuperMessageBox(caption, message, MessageBoxType.Information, callback);

            messageBox.Show();
        }
Пример #8
0
        public static void ShowWarning(string caption, string message, string yesButtonText, string noButtonText, Action yesAction, Action noAction = null)
        {
            var messageBox = new SuperMessageBox(caption, message, yesButtonText, noButtonText, MessageBoxType.Warning, yesAction, noAction);

            messageBox.Show();
        }
Пример #9
0
        public static void ShowWarning(string caption, string message, Action okayAction, Action cancelAction = null)
        {
            var messageBox = new SuperMessageBox(caption, message, MessageBoxType.Warning, okayAction, cancelAction);

            messageBox.Show();
        }
Пример #10
0
        public static void ShowConfirmation(string caption, string message, Action okayAction, Action cancelAction = null)
        {
            var messageBox = new SuperMessageBox(caption, message, "OK", "Cancel", MessageBoxType.Confirmation, okayAction, cancelAction);

            messageBox.Show();
        }