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));
        }
Example #2
0
 public ActionListControl GetActionListControl()
 {
     if (step.ElementList.Count > 0)
     {
         DrawableLangModTogglerDSV dsv = step.ElementList[2] as DrawableLangModTogglerDSV;
         if (dsv.ElementList.Count > 0)
         {
             UIElementWrapperForUIContainer   container     = dsv.ElementList[0] as UIElementWrapperForUIContainer;
             UIElementWrapperForPalettes      palettes      = container.ElementList[0] as UIElementWrapperForPalettes;
             UIElementWrapperForPalettesProxy palettesProxy = new UIElementWrapperForPalettesProxy(palettes);
             LanguagePaletteBaseElement       palette       = palettesProxy.Palette;
             UIControlWindowlessWrapper       wrapper       = palette.ChildControls[1] as UIControlWindowlessWrapper;
             ActionListControl alc = wrapper.ChildControls[0] as ActionListControl;
             return(alc);
         }
     }
     return(null);
 }
Example #3
0
 public GraphFLGraphicEditor GetGraphFLGraphicEditor()
 {
     if (Transition.ElementList.Count > 0)
     {
         DrawableLangModTogglerDSV dsv = Transition.ElementList[2] as DrawableLangModTogglerDSV;
         if (dsv.ElementList.Count > 0)
         {
             UIElementWrapperForUIContainer   container     = dsv.ElementList[0] as UIElementWrapperForUIContainer;
             UIElementWrapperForPalettes      palettes      = container.ElementList[0] as UIElementWrapperForPalettes;
             UIElementWrapperForPalettesProxy palettesProxy = new UIElementWrapperForPalettesProxy(palettes);
             LanguagePaletteBaseElement       palette       = palettesProxy.Palette;
             UIControlWindowlessWrapper       wrapper       = palette.ChildControls[1] as UIControlWindowlessWrapper;
             GraphFLGraphicEditor             editor        = wrapper.ChildControls[0] as GraphFLGraphicEditor;
             return(editor);
         }
     }
     return(null);
 }
Example #4
0
 internal DrawableLangModTogglerDSVProxy(DrawableLangModTogglerDSV dsv)
     : base(dsv)
 {
     DrawableLangModTogglerDSV = dsv as DrawableLangModTogglerDSV;
 }