PreOpen() public method

public PreOpen ( ) : void
return void
        public static void GoTo( ManagerTab tab, ManagerJob job = null )
        {
            // call pre/post open/close methods
            ManagerTab old = CurrentTab;
            old.PreClose();
            tab.PreOpen();
            CurrentTab = tab;
            old.PostClose();
            tab.PostOpen();

            // if desired, set selected.
            if ( job != null )
            {
                tab.Selected = job;
            }
        }
        public static void GoTo(ManagerTab tab, ManagerJob job = null)
        {
            // call pre/post open/close methods
            ManagerTab old = CurrentTab;

            old.PreClose();
            tab.PreOpen();
            CurrentTab = tab;
            old.PostClose();
            tab.PostOpen();

            // if desired, set selected.
            if (job != null)
            {
                tab.Selected = job;
            }
        }
        public override void PreOpen()
        {
            base.PreOpen();

            // TODO: reimplement help dialog
            //if ( !Manager.For( Find.CurrentMap ).HelpShown )
            //{
            //    Find.WindowStack.Add( new Dialog_Message( "FM.HelpMessage".Translate(), "FM.HelpTitle".Translate() ) );
            //    Manager.For( Find.CurrentMap ).HelpShown = true;
            //}

            // make sure the currently open tab is for this map
            if (CurrentTab.manager.map != Find.CurrentMap)
            {
                CurrentTab = DefaultTab;
            }
            CurrentTab.PreOpen();
        }
        public override void PreOpen()
        {
            base.PreOpen();

            // TODO: reimplement help dialog
            //if ( !Manager.For( Find.VisibleMap ).HelpShown )
            //{
            //    Find.WindowStack.Add( new Dialog_Message( "FM.HelpMessage".Translate(), "FM.HelpTitle".Translate() ) );
            //    Manager.For( Find.VisibleMap ).HelpShown = true;
            //}

            Manager.For(Find.VisibleMap).RefreshTabs();
            Manager.For(Find.VisibleMap).AddPowerTabIfUnlocked();

            // don't show tabs for other maps
            if (CurrentTab.manager.map != Find.VisibleMap)
            {
                CurrentTab = DefaultTab;
            }
            CurrentTab.PreOpen();
        }