private void Dialog_Closed(object sender, DialogControlClosedEventArgs e) { if (_currentDialogControl == sender) { _currentDialogControl = null; DialogClosed.Raise(sender, e); } }