void IDocument.Close(bool force)
 {
     if (!force)
     {
         if (!onClosing)
         {
             Window.Close();
         }
         return;
     }
     Window.Closing -= window_Closing;
     if (!destroyOnClose)
     {
         if (!onClosing)
         {
             Window.Hide();
         }
         state = DocumentState.Hidden;
     }
     else
     {
         if (!onClosing)
         {
             Window.Close();
         }
         state = DocumentState.Destroyed;
     }
 }
 void IWindowService.Close()
 {
     if (window != null)
     {
         window.Close();
     }
 }