Interaction logic for UserInputWindow.xaml
Beispiel #1
0
 /// <summary>
 /// The show.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="detailedMessage">The detailed message.</param>
 public static void DisplayMessage(string message, string detailedMessage)
 {
     Application.Current.Dispatcher.Invoke(
         delegate
     {
         var box = new MessageDisplayBox(message, detailedMessage);
         box.ShowDialog();
     });
 }
 /// <summary>
 /// The show.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="detailedMessage">The detailed message.</param>
 public static void DisplayMessage(string message, string detailedMessage)
 {
     Application.Current.Dispatcher.Invoke(
         delegate
         {
             var box = new MessageDisplayBox(message, detailedMessage);
             box.ShowDialog();
         });
 }
 /// <summary>
 /// The show.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="detailedMessage">The detailed message.</param>
 public static void DisplayMessage(string message, string detailedMessage = "", string helpurl = "")
 {
     Application.Current.Dispatcher.Invoke(
         delegate
     {
         try
         {
             var box         = new MessageDisplayBox(message, detailedMessage, helpurl);
             box.WindowStyle = WindowStyle.None;
             box.ShowDialog();
         }
         catch (Exception ex)
         {
             Debug.WriteLine(ex.Message);
         }
     });
 }
 /// <summary>
 /// The show.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="detailedMessage">The detailed message.</param>
 public static void DisplayMessage(string message, string detailedMessage = "", string helpurl = "")
 {
     Application.Current.Dispatcher.Invoke(
         delegate
         {
             try
             {
                 var box = new MessageDisplayBox(message, detailedMessage, helpurl);
                 box.WindowStyle = WindowStyle.None;
                 box.ShowDialog();
             }
             catch (Exception ex)
             {
                 Debug.WriteLine(ex.Message);
             }
         });
 }