/// <summary> /// Show a Metro Message Box /// </summary> /// <param name="title">The title of the Message Box</param> /// <param name="message">The message to be displayed in the Message Box</param> /// <param name="buttons">The buttons to show in the Message Box</param> /// <returns>The button the user clicked</returns> public static MessageBoxResults Show(string title, string message, MessageBoxButtons buttons) { Settings.HomeWindow.ShowMask(); ControlDialogs.MessageBoxOptions msgBox = new ControlDialogs.MessageBoxOptions(title, message, buttons); msgBox.Owner = Backend.Settings.HomeWindow; msgBox.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; msgBox.ShowDialog(); Settings.HomeWindow.HideMask(); return Backend.TempStorage.MessageBoxButtonStorage; }
/// <summary> /// Show a Metro Message Box /// </summary> /// <param name="title">The title of the Message Box</param> /// <param name="message">The message to be displayed in the Message Box</param> /// <param name="buttons">The buttons to show in the Message Box</param> /// <returns>The button the user clicked</returns> public static MessageBoxResults Show(string title, string message, MessageBoxButtons buttons) { Settings.HomeWindow.ShowMask(); ControlDialogs.MessageBoxOptions msgBox = new ControlDialogs.MessageBoxOptions(title, message, buttons); msgBox.Owner = Backend.Settings.HomeWindow; msgBox.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; msgBox.ShowDialog(); Settings.HomeWindow.HideMask(); return(Backend.TempStorage.MessageBoxButtonStorage); }