/// <summary>
 /// Called to update the current status of the command.
 /// </summary>
 protected override void OnBeforeQueryStatus()
 {
     Enabled = OpenDocuments.Any();
 }