예제 #1
0
 /// <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>
 public static void Show(string title, string message)
 {
     App.MetroIdeStorage.MetroIdeSettings.HomeWindow.ShowMask();
     var msgBox = new ControlDialogs.MessageBox(title, message)
     {
         Owner = App.MetroIdeStorage.MetroIdeSettings.HomeWindow,
         WindowStartupLocation = WindowStartupLocation.CenterOwner
     };
     msgBox.ShowDialog();
     App.MetroIdeStorage.MetroIdeSettings.HomeWindow.HideMask();
 }
예제 #2
0
        /// <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>
        public static void Show(string title, string message)
        {
            App.MetroIdeStorage.MetroIdeSettings.HomeWindow.ShowMask();
            var msgBox = new ControlDialogs.MessageBox(title, message)
            {
                Owner = App.MetroIdeStorage.MetroIdeSettings.HomeWindow,
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };

            msgBox.ShowDialog();
            App.MetroIdeStorage.MetroIdeSettings.HomeWindow.HideMask();
        }