/// <summary>
/// Removes the specified dialog box view.
/// </summary>
/// <param name="view"></param>
public void RemoveDialogBoxView(WorkspaceDialogBoxView view)
{
// close the dialog and remove it
var form = view.DialogBoxForm;
form.Close();
_dialogBoxForms.Remove(form);
// re-enable the appropriate thing
var previousDialogBox = CollectionUtils.LastElement(_dialogBoxForms);
if (previousDialogBox != null)
{
// enable and activate previous dialog box in the list
previousDialogBox.Enabled = true;
previousDialogBox.Activate();
}
else
{
// activate the workspace content
_workspaceContent.Enabled = true;
_owner.Activate();
}
}