public override void Do() { Rectangle selectionContext = new Rectangle(Location.Origin, m_layer.LayerSize); switch (m_changeSelectionType) { case ChangeSelectionType.SelectAll: m_currentTileSelection.SelectAll(selectionContext); break; case ChangeSelectionType.Clear: m_currentTileSelection.Clear(); break; case ChangeSelectionType.Invert: m_currentTileSelection.Invert(selectionContext); break; } }