コード例 #1
0
        //public double GetWidth()
        //{
        //    return ((IGnosisTileImplemenation)ControlImplementation).GetWidth();
        //}
        //public void AddFrame(GnosisFrameController frameController)
        //{
        //    frameControllers.Add(frameController);

        //    if (loaded)
        //    {
        //        LoadFrame();
        //    }
        //}


        public void LoadFrame(GnosisFrameController frame)
        {
            if (tabController != null)
            {
                tabController.AddFrameController(frame);
            }
            else
            {
                frameControllers.Add(frame);
                currentFrameController = frame;

                ((GnosisTile)ControlImplementation).Clear();
                ((GnosisTile)ControlImplementation).LoadFrameImplementation((IGnosisFrameImplementation)frame.ControlImplementation);
            }
        }
コード例 #2
0
        //private void LoadFrame()
        //{
        //    if (frameControllers.Count > 0)
        //    {
        //        GnosisFrameController lastFrame = frameControllers[frameControllers.Count - 1];
        //        ((IGnosisTileImplemenation)ControlImplementation).LoadFrameImplementation((IGnosisFrameImplementation)lastFrame.ControlImplementation);
        //    }
        //}

        private void CreateTabs()
        {
            //create a tab controller
            // IGnosisTileTabImplementation tabImp = GlobalData.Singleton.ImplementationCreator.GetGnosisTabImplementation();

            GnosisTileTab tab = GnosisControlCreator.CreateGnosisTab();

            tabController = new GnosisTileTabController(tab, EntityController, this);
            tabController.Setup();

            //pass the frames to the tab controller
            foreach (GnosisFrameController frameController in frameControllers)
            {
                tabController.AddFrameController(frameController);
            }

            //update the UI
            ((GnosisTile)ControlImplementation).LoadTabImplementation((IGnosisTileTabImplementation)tabController.ControlImplementation);

            frameControllers       = new List <GnosisFrameController>();
            currentFrameController = null;
        }