/// <summary> /// Removes the IScreenUpdateable. /// </summary> /// <param name="updateable">The updateable.</param> /// <param name="callCleanUp">if set to <c>true</c> [call clean up].</param> public void RemoveScreenUpdateable(IScreenUpdateable updateable, bool callCleanUp = false) { System.Diagnostics.Debug.Assert(updateable != null); if (callCleanUp) { updateable.iCleanUp(); } updateables.Remove(updateable); }
/// <summary> /// Removes the IScreenUpdateable. /// </summary> /// <param name="updateable">The updateable.</param> /// <param name="callCleanUp">if set to <c>true</c> [call clean up].</param> public void RemoveScreenUpdateable(IScreenUpdateable updateable, bool callCleanUp = false) { System.Diagnostics.Debug.Assert(updateable != null); if(callCleanUp) updateable.iCleanUp(); updateables.Remove(updateable); }
/// <summary> /// Attach one IScreenUpdateable to this screen /// </summary> /// <param name="updateable">The updateable.</param> public void AddScreenUpdateable(IScreenUpdateable updateable) { System.Diagnostics.Debug.Assert(updateable != null); updateables.Add(updateable); }
/// <summary> /// Attach one IScreenUpdateable to this screen /// </summary> /// <param name="updateable">The updateable.</param> public void AddScreenUpdateable(IScreenUpdateable updateable) { System.Diagnostics.Debug.Assert(updateable != null); updateables.Add(updateable); }