private void BackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Cancelled)
     {
         this.DialogResult = DialogResult.Cancel;
         this.Close();
     }
     else if (e.Error != null)
     {
         ErrorDialog.Show(e.Error);
         this.DialogResult = DialogResult.Abort;
         this.Close();
     }
     else
     {
         m_result          = e.Result;
         this.DialogResult = DialogResult.OK;
         this.Close();
     }
 }
 /// <summary>
 /// Displays an error message
 /// </summary>
 /// <param name="message">The message</param>
 public virtual void ShowError(string message) => ErrorDialog.Show(message, message);
 /// <summary>
 /// Displays an exception message
 /// </summary>
 /// <param name="ex">The exception object</param>
 public void ShowError(Exception ex) => ErrorDialog.Show(ex);