public RdsExplorerPanel GetRdsExplorerPanel(TabItem _TabItem) { if (_TabItem == null) { return(null); } if (_TabItem.Content == null) { return(null); } RdsExplorerPanel rtn = null; try { rtn = (RdsExplorerPanel)_TabItem.FindChildren <RdsExplorerPanel>().First <RdsExplorerPanel>(); } catch (System.Exception x) { #if DEBUG Jrfc.Exception.HandleException(x, System.Diagnostics.EventLogEntryType.Warning, Exception.DisplayMessage.Yes); #else Jrfc.Exception.HandleException(x, System.Diagnostics.EventLogEntryType.Warning, Exception.DisplayMessage.No); #endif } return(rtn); }