internal static DrawableElementProxy ToProxy(this DrawableElement element)
        {
            if (element is DrawableStep)
            {
                DrawableStep step = element as DrawableStep;
                return(new DrawableStepProxy(step));
            }

            if (element is DrawableLangModTogglerDSV)
            {
                DrawableLangModTogglerDSV dsv = element as DrawableLangModTogglerDSV;
                return(new DrawableLangModTogglerDSVProxy(dsv));
            }

            if (element is ActionListDrawLangMod)
            {
                ActionListDrawLangMod mod = element as ActionListDrawLangMod;
                return(new DrawableElementProxy(mod));
            }

            if (element is UIElementWrapperForUIContainer)
            {
                UIElementWrapperForUIContainer container = element as UIElementWrapperForUIContainer;
                return(new UIElementWrapperForUIContainerProxy(container));
            }

            if (element is DrawableTransition)
            {
                DrawableTransition transition = element as DrawableTransition;
                return(new DrawableTransitionProxy(transition));
            }

            return(new DrawableElementProxy(element));
        }
Exemple #2
0
        public List <DrawableStepProxy> GetSteps()
        {
            List <DrawableStepProxy> list = new List <DrawableStepProxy>();

            foreach (var element in overlay.ElementList)
            {
                if (element is DrawableStep)
                {
                    DrawableStep      step  = element as DrawableStep;
                    DrawableStepProxy proxy = new DrawableStepProxy(step);
                    list.Add(proxy);
                }
            }
            return(list);
        }
 internal DrawableStepProxy(DrawableStep step)
     : base(step)
 {
     this.step = step;
 }