Пример #1
0
 /// <summary>
 /// Show a Metro Message Box
 /// </summary>
 /// <param name="message">The message to be displayed in the Message Box</param>
 public static void Show(string message)
 {
     Settings.HomeWindow.ShowMask();
     ControlDialogs.MessageBox msgBox = new ControlDialogs.MessageBox("Message Box", message);
     msgBox.Owner = Backend.Settings.HomeWindow;
     msgBox.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     msgBox.ShowDialog();
     Settings.HomeWindow.HideMask();
 }
Пример #2
0
 /// <summary>
 /// Show a Metro Message Box
 /// </summary>
 /// <param name="message">The message to be displayed in the Message Box</param>
 public static void Show(string message)
 {
     Settings.HomeWindow.ShowMask();
     ControlDialogs.MessageBox msgBox = new ControlDialogs.MessageBox("Message Box", message);
     msgBox.Owner = Backend.Settings.HomeWindow;
     msgBox.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     msgBox.ShowDialog();
     Settings.HomeWindow.HideMask();
 }