public override void OnBlockRemoved() { base.OnBlockRemoved(); if (clientDialog != null) { clientDialog.TryClose(); if (clientDialog != null) { clientDialog.Dispose(); clientDialog = null; } } }