private void LoadTabInActiveTabView(RetentionSchedule retentionSchedule)
        {
            IRetentionTab tab = FindActiveTab();

            if (tab != null)
            {
                tab.LoadTab(retentionSchedule);
                printButton.Visible = tab as IPrintableView != null;
            }
        }
        private IRetentionTab FindActiveTab()
        {
            IRetentionTab tab = null;

            foreach (Control control in TabViews.Views[TabViews.ActiveViewIndex].Controls)
            {
                tab = control as IRetentionTab;
                if (tab != null)
                {
                    printButton.Visible = control as IPrintableView != null;
                    break;
                }
            }
            return(tab);
        }