Пример #1
0
 /// <summary>
 /// Shows a message window, focusing on the parent after creation.
 /// </summary>
 /// <param name="message">Message to display</param>
 /// <param name="duration">Amount of time, in milliseconds, to show the window</param>
 /// <param name="parent">Window to send focus to</param>
 public static void Show(String message, double duration, Window parent)
 {
     MessageWindow w = new MessageWindow(message, duration);
     w.Show();
     parent.Focus();
 }
Пример #2
0
 /// <summary>
 /// Creates and shows a MessageWindow.
 /// </summary>
 /// <param name="message">Message to display</param>
 /// <param name="duration">Amount of time, in milliseconds, to show the window</param>
 public static void Show(String message, double duration)
 {
     MessageWindow w = new MessageWindow(message, duration);
     w.Show();
 }