public virtual void ClearScreens() { _screenMap.Clear(); foreach (Screen screen in _screens) { if (screen != null) { screen.Destroy(); } } _screens.Clear(); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public static void Exclude(IList <CursorType> pBaseTypes, IList <CursorType> pRemoveTypes, IList <CursorType> pResultTypes) { pResultTypes.Clear(); ExcludeMap.Clear(); for (int i = 0; i < pBaseTypes.Count; i++) { ExcludeMap[pBaseTypes[i]] = true; } for (int i = 0; i < pRemoveTypes.Count; i++) { ExcludeMap[pRemoveTypes[i]] = false; } for (int i = 0; i < ExcludeMap.KeysReadOnly.Count; i++) { CursorType type = ExcludeMap.KeysReadOnly[i]; if (ExcludeMap[type]) { pResultTypes.Add(type); } } }
public void SetDirty(bool dirty) { if (dirty) { if (colorList != null) { colorList.Clear(); } } this.dirty = dirty; }