protected void AppManager_OnDocContentShowEvent(object sender, DocContentShowEventArgs e) { if (e.Content.ContentContainer == null) { throw new Exception(""); } if (e.Content.ContentContainer == this) { FrwDocContent cc = FindJustDocContentByIContent(e.Content); if (cc != null) { cc.Show(dockPanel);//, DockState.Document); } } }