Beispiel #1
0
 /// <summary>
 /// Standard constructor
 /// </summary>
 public MainWindow()
 {
     try
     {
         this.Executing = false;
         this.InitializeComponent();
         this.UpdateWindow(string.Empty);
         this.ClearCounters();
         this.Application.OnCountersChange += this.ApplicationOnCountersChange;
     }
     catch (Exception lException)
     {
         MessageBox.Show(ErrorToolkit.CreateErrorMessage(lException));
     }
 }
Beispiel #2
0
 /// <summary>
 /// Constructor with exception
 /// </summary>
 /// <param name="pException"></param>
 public ErrorEventArgs(Exception pException)
     : this(ErrorToolkit.CreateErrorMessage(pException))
 {
 }
 /// <summary>
 /// Constructor with exception
 /// </summary>
 /// <param name="pException">The exception</param>
 public FolderIconsException(Exception pException)
     : this(ErrorToolkit.CreateErrorMessage(pException))
 {
 }
 /// <summary>
 /// Showing error message
 /// </summary>
 /// <param name="pException">Exception to take error message from</param>
 public static void ShowErrorMessage(Exception pException)
 {
     MessageBox.Show(ErrorToolkit.CreateErrorMessage(pException), string.Empty, MessageBoxButton.OK, MessageBoxImage.Error);
 }