Exemplo n.º 1
0
        internal void ChangeToDemo(int Index)
        {
            if (Index < 0 || Index >= DemoList_.Count)
            {
                return;
            }

            if (DemoIndex_ != -1)
            {
                DemoList_[DemoIndex_].Shutdown();
                LGui.ClearContext();
            }
            DemoIndex_ = Index;

            if (!DemoList_[DemoIndex_].Startup())
            {
                DemoIndex_ = -1;
            }
        }