public void PassBaseController(BaseEditorViewerContainer <TEntity> baseEditorContainer)
 {
     if (baseEditorContainer != null)
     {
         baseEditorContainer.BaseControllerObject = this;
     }
 }
        public XtraTabControl InitializeCommonTabControl(Control viewer,
                                                         string pageHeaderTitle, int tabIndex, bool isPageEnabled, bool isPageVisible, ViewerName viewerName,
                                                         DefaultBoolean showCloseButton = DefaultBoolean.False, BorderStyle borderStyle = BorderStyle.None,
                                                         DockStyle dockStyle            = DockStyle.Fill)
        {
            XtraTabPage tabPage = CommonViewsActions.CreateTabPageControl(mainTab, pageHeaderTitle, tabIndex, "Office 2010 Black",
                                                                          isPageEnabled,
                                                                          isPageVisible,
                                                                          showCloseButton, borderStyle, dockStyle);

            tabPage.Dock              = DockStyle.Fill;
            _baseEditorContainer      = new BaseEditorViewerContainer <TEntity>(BaseController);
            _baseEditorContainer.Dock = DockStyle.Fill;
            _baseEditorContainer.InitalizeContainer(viewer, false, true);
            _baseContainer = BaseController.InitiaizeBaseContainer(_baseEditorContainer, pageHeaderTitle, false, false);

            tabPage.Controls.Add(_baseContainer);
            mainTab.TabPages.Add(tabPage);

            return(mainTab);
        }