Update DialogManager.cs

Get the dialog from a MetroWindow