예제 #1
0
        protected override void Execute()
        {
            ContainerWidget container = FindParent <ProfilingPage>().FindChild <ContainerWidget>();
            T widget = container.FindChild <T>();

            if (widget == null)
            {
                widget = new T();
                container.AttachChild(widget);
            }
            container.CurrentChild = widget;
        }