public void Deactivate() { for (int i = 0; i < 5; i++) { if (verticalItems[i] != null) { verticalScrollableBase.Remove(verticalItems[i]); verticalItems[i].Dispose(); } } if (verticalScrollableBase != null) { root.Remove(verticalScrollableBase); verticalScrollableBase.Dispose(); } for (int i = 0; i < 5; i++) { if (horizontalItems[i] != null) { horizontalScrollableBase.Remove(horizontalItems[i]); horizontalItems[i].Dispose(); } } if (horizontalScrollableBase != null) { root.Remove(horizontalScrollableBase); horizontalScrollableBase.Dispose(); } root.Dispose(); }
public void Deactivate() { for (int i = 0; i < 5; i++) { if (items[i] != null) { mScrollableBase.Remove(items[i]); items[i].Dispose(); } } if (mScrollableBase != null) { root.Remove(mScrollableBase); mScrollableBase.Dispose(); } root.Dispose(); }