Esempio n. 1
0
        protected bool SwitchToNormal(List <UpdateObject> updateList, List <RenderObject> renderList)
        {
            bool result = false;

            if (State == States.Inactive)
            {
                updateList.Add(updateObj);
                //updateObj.Activate();
                renderList.Add(renderObj);
                renderObj.Activate();
            }
            else if (State == States.Hot)
            {
                updateObj.Deactivate();
            }
            renderObj.State = ControlRenderObj.idStateNormal;
            AffixLineNumberToCurrentState();
            return(result);
        }
Esempio n. 2
0
        protected bool SwitchToNormal(List <UpdateObject> updateList, List <RenderObject> renderList)
        {
            bool result = false;

            if (state == States.Inactive)
            {
                // Don't keep adding the same object to the list!
                if (!updateList.Contains(updateObj))
                {
                    updateList.Add(updateObj);
                }
                //updateObj.Activate();
                renderList.Add(renderPanel);
                SwitchRenderStateTo(ControlRenderObj.idStateNormal);

                renderPanel.Activate();
            }
            else if (state == States.Hot)
            {
                updateObj.Deactivate();
                SwitchRenderStateTo(ControlRenderObj.idStateNormal);
            }
            return(result);
        }