/// <summary> /// Constructor lets the caller specify whether to include any /// of the three Buttons available, and to allows the caller /// to specify the text of the button. /// </summary> public MessageBoxScreen(TopLevelModel topLevel, string message, string leftButtonText, string middleButtonText, string rightButtonText) : base(topLevel) { this.title = message; messageBoxTemplate = new MessageBoxTemplate(message); LeftButtonText = leftButtonText; MiddleButtonText = middleButtonText; RightButtonText = rightButtonText; base.IsPopup = true; base.TransitionOnTime = TimeSpan.FromSeconds(0.2); base.TransitionOffTime = TimeSpan.FromSeconds(0.2); }
/// <summary> /// Constructor automatically includes a Left button to Cancel /// and a Right button to Confirm the message. /// </summary> public MessageBoxScreen(TopLevelModel topLevel, string message) : base(topLevel) { this.title = message; // Added. - Jorenz messageBoxTemplate = new MessageBoxTemplate(message); LeftButtonText = "Cancel"; MiddleButtonText = null; RightButtonText = "Confirm"; base.IsPopup = true; base.TransitionOnTime = TimeSpan.FromSeconds(0.2); base.TransitionOffTime = TimeSpan.FromSeconds(0.2); }