private static void ShowErrorBox(Exception exception, string message, bool mustTerminate)
 {
     try
     {
         using (ExceptionBox box = new ExceptionBox(exception, message, mustTerminate))
         {
             try
             {
                 box.ShowDialog(NotifyIconForm.Instance);
             }
             catch (InvalidOperationException)
             {
                 box.ShowDialog();
             }
         }
     }
     catch (Exception)
     {
         MessageBox.Show(exception.ToString());
     }
 }
 private static void ShowErrorBox(Exception exception, string message, bool mustTerminate)
 {
     try
     {
         using (ExceptionBox box = new ExceptionBox(exception, message, mustTerminate))
         {
             try
             {
                 box.ShowDialog(NotifyIconForm.Instance);
             }
             catch (InvalidOperationException)
             {
                 box.ShowDialog();
             }
         }
     }
     catch (Exception)
     {
         MessageBox.Show(exception.ToString());
     }
 }