protected override void OnDestroy() { base.OnDestroy(); if (Viewer != null) { Viewer.OnDestory(); } }