protected override void OnPreRender(EventArgs e)
 {
     PreResetConfirmDialog.Close();
     if (IsShown)
     {
         if (WorkQueue != null)
         {
             PreResetConfirmDialog.Show();
         }
     }
     base.OnPreRender(e);
 }
 /// <summary>
 /// Closes the dialog box
 /// </summary>
 public void Hide()
 {
     PreResetConfirmDialog.Close();
     MessageBox.Close();
 }