public void DisableGraphBlockInputInternal()
        {
            SequenceUIElement.SequenceUIElement.BackColor = Color.Yellow;
            UIElementCollection children = HostElement.ChildUIElements;

            List <OverlayBaseProxy> seqOverlayList = GetSequenceOverlay();

            foreach (var overlay in seqOverlayList)
            {
                var steps = overlay.GetSteps();
                foreach (var step in steps)
                {
                    ActionListControl actions = step.GetActionListControl();
                    if (actions != null)
                    {
                        actions.BackColor = Color.Red;
                        actions.Enabled   = false;
                        CmdDispatcher CmdDispatcher = actions.CmdDispatcher;
                        CmdDispatcher.MainCmdContainer.ClearCmdHandler();
                        var ActionListOverlays = actions.ActionListOverlays;
                        actions.ContextMenuProvider = null;


                        EditOverlay edit = actions.EditOverlay;
                        edit.BackColor = Color.Blue;
                    }
                }

                var transitions = overlay.GetTransitions();

                foreach (var transition in transitions)
                {
                    GraphFLGraphicEditor editor = transition.GetGraphFLGraphicEditor();
                    if (editor != null)
                    {
                        editor.Enabled   = false;
                        editor.BackColor = Color.Yellow;
                    }
                }
            }

            List <IDebugBlock> blocks = GetVisibleSubControls();


            foreach (var child in view.Controls)
            {
            }
        }
示例#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);
 }