Esempio n. 1
0
        public static bool? Show(string message, string detail, MessageBoxWindowType windowType, MessageBoxWindowButtonsType buttonType)
        {
            MessageBoxWindow window = new MessageBoxWindow();

              window.Message = message;
              window.Detail = detail;
              window.WindowType = windowType;
              window.ButtonsType = buttonType;

              switch (windowType)
              {
            case MessageBoxWindowType.Information:
              window.Title = LanguageString.Find("Presentation_Windows_MessageBoxWindow_Information");
              break;
            case MessageBoxWindowType.Question:
              window.Title = LanguageString.Find("Presentation_Windows_MessageBoxWindow_Question");
              break;
            case MessageBoxWindowType.Warning:
              window.Title = LanguageString.Find("Presentation_Windows_MessageBoxWindow_Warning");
              break;
            case MessageBoxWindowType.Error:
              window.Title = LanguageString.Find("Presentation_Windows_MessageBoxWindow_Error");
              break;
            default:
              window.Title = LanguageString.Find("Presentation_Windows_MessageBoxWindow_Information");
              break;
              }

              return window.ShowDialog();
        }
Esempio n. 2
0
        public static bool? Show(string message, string detail, MessageBoxWindowType windowType, MessageBoxWindowButtonsType buttonType, string title)
        {
            MessageBoxWindow window = new MessageBoxWindow();

              window.Title = title;
              window.Message = message;
              window.Detail = detail;
              window.WindowType = windowType;
              window.ButtonsType = buttonType;

              return window.ShowDialog();
        }
Esempio n. 3
0
        public static bool? ShowQuestionOkCancel(string message, string detail)
        {
            MessageBoxWindow window = new MessageBoxWindow();

              window.Title = LanguageString.Find("Presentation_Windows_MessageBoxWindow_Question");
              window.Message = message;
              window.Detail = detail;
              window.WindowType = MessageBoxWindowType.Information;
              window.ButtonsType = MessageBoxWindowButtonsType.OkCancel;

              return window.ShowDialog();
        }