/// <summary>
/// Shows a dialog box in front of this window.
/// </summary>
/// <param name="args">Creation helper object.</param>
/// <returns>The button the user selected to dismiss the dialog.</returns>
public DialogBoxAction ShowDialogBox(DialogBoxCreationArgs args)
{
AssertState(new[] { DesktopObjectState.Open, DesktopObjectState.Closing });
DialogBox dialog = _dialogs.AddNew(args);
return(dialog.RunModal());
}