Example #1
0
        public Point GetLocationRelativeToOutmostPanel(Point location)
        {
            StateContainerEditor designer      = StateContainerEditor.GetVisualAncestor <StateContainerEditor>(this);
            StateContainerEditor outmostEditor = designer.GetOutmostStateContainerEditor();

            return(this.TranslatePoint(location, outmostEditor.Panel));
        }
Example #2
0
        internal bool IsOutmostPanel()
        {
            StateContainerEditor designer = StateContainerEditor.GetVisualAncestor <StateContainerEditor>(this);

            if (designer != null)
            {
                StateContainerEditor outmostEditor = designer.GetOutmostStateContainerEditor();
                return(outmostEditor != null && this == outmostEditor.Panel);
            }
            return(false);
        }
Example #3
0
        static public List <Point> GetEdgeRelativeToOutmostPanel(ConnectionPoint connectionPoint)
        {
            FreeFormPanel parentPanel = StateContainerEditor.GetVisualAncestor <FreeFormPanel>(connectionPoint.ParentDesigner);
            List <Point>  edge        = new List <Point>();

            foreach (Point point in connectionPoint.Edge)
            {
                edge.Add(parentPanel.GetLocationRelativeToOutmostPanel(point));
            }
            return(edge);
        }
Example #4
0
        static public Point GetLocationRelativeToOutmostPanel(ConnectionPoint connectionPoint)
        {
            FreeFormPanel parentPanel = StateContainerEditor.GetVisualAncestor <FreeFormPanel>(connectionPoint.ParentDesigner);

            return(parentPanel.GetLocationRelativeToOutmostPanel(connectionPoint.Location));
        }