private void ChangeMode(MapViewport.EditMode editMode) { collisionModeButton.Checked = editMode == MapViewport.EditMode.CollisionMap; enemyModeButton.Checked = editMode == MapViewport.EditMode.Enemies; viewport.SetEditMode(editMode); }