protected bool SwitchToHot(List <UpdateObject> updateList, List <RenderObject> renderList) { bool result = false; if (State == States.Inactive) { updateList.Add(updateObj); // updateObj.Activate(); renderList.Add(renderObj); renderObj.Activate(); } updateObj.Activate(); renderObj.State = ControlRenderObj.idStateHot; AffixLineNumberToCurrentState(); return(result); }
protected void ApplyUpdateObjChange(List <UpdateObject> updateList, List <RenderObject> renderList) { if (updateObj != null) { if (State == States.Hot) { updateObj.Deactivate(); } updateList.Remove(updateObj); } updateObj = updateObjPending; updateList.Add(updateObj); if (State == States.Hot) { updateObj.Activate(); } }
protected bool SwitchToHot(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.idStateHot); renderPanel.Activate(); } else if (state == States.Active) { SwitchRenderStateTo(ControlRenderObj.idStateHot); } updateObj.Activate(); return(result); }