Esempio n. 1
0
        protected void ApplyUpdateObjChange(List <UpdateObject> updateList, List <RenderObject> renderList)
        {
            if (updateObj != null)
            {
                updateObj.Deactivate();
                updateList.Remove(updateObj);
                // have our update object remove its commands from the child controls.
                for (int indexCard = 0; indexCard < listControls.Count; indexCard++)
                {
                    IControl control = listControls[indexCard] as IControl;
                    updateObj.RemoveCommandsFromControl(control);
                }
            }

            updateObj = updateObjPending;

            AttachCommands();

            // Keep updatelist from having multiple copies of the same obj.
            if (!updateList.Contains(updateObj))
            {
                updateList.Add(updateObj);
            }
            // updateObj.Activate(); this is only called when hot
        }