/// <summary> /// Shows error window. /// </summary> /// <param name="ex">Exception to show.</param> public static void Show( string title, string format, params string[] args ) { ErrorWindow window = new ErrorWindow(); window.ErrorTitle.Text = title; window.ErrorMessage.Text = String.Format( format, args ); window.ShowDialog(); }
/// <summary> /// Shows error window. /// </summary> /// <param name="ex">Exception to show.</param> public static void Show( Exception ex ) { ErrorWindow window = new ErrorWindow(); window.ErrorTitle.Text = ex.Message; window.ErrorMessage.Text = ex.StackTrace; window.ShowDialog(); }
/// <summary> /// Shows error window. /// </summary> /// <param name="ex">Exception to show.</param> public static void Show(string title, string format, params string[] args) { ErrorWindow window = new ErrorWindow(); window.ErrorTitle.Text = title; window.ErrorMessage.Text = String.Format(format, args); window.ShowDialog(); }
/// <summary> /// Shows error window. /// </summary> /// <param name="ex">Exception to show.</param> public static void Show(Exception ex) { ErrorWindow window = new ErrorWindow(); window.ErrorTitle.Text = ex.Message; window.ErrorMessage.Text = ex.StackTrace; window.ShowDialog(); }