示例#1
0
        public void AddSelection(Gwen.Control.Base pControl, bool fireEvent)
        {
            Cage pCage = new Cage( this );
            pCage.Setup(pControl);
            pCage.Moving += OnCageMoving;

            m_Selected.Add( pControl );

            if (fireEvent && SelectionChanged != null)
                SelectionChanged.Invoke(m_Selected);

            Redraw();
        }
示例#2
0
        public void AddSelection(Gwen.Control.Base pControl, bool fireEvent)
        {
            Cage pCage = new Cage(this);

            pCage.Setup(pControl);
            pCage.Moving += OnCageMoving;

            m_Selected.Add(pControl);

            if (fireEvent && SelectionChanged != null)
            {
                SelectionChanged.Invoke(m_Selected);
            }

            Redraw();
        }
示例#3
0
        void SwitchCage(Gwen.Control.Base pControl, Gwen.Control.Base pTo)
        {
            foreach (var child in  Children)
            {
                Cage pCage = child as Cage;
                if (pCage == null)
                {
                    continue;
                }

                if (pCage.Target == pControl)
                {
                    pCage.Setup(pTo);
                }
            }
        }