public void SelectBox(box Box) { Box.highlightBox(); bool tooMuch = Boxes.Count >= 1; if (tooMuch) { unSelectBox(Boxes[0]); Boxes.Add(Box); } else { Boxes.Add(Box); } }
public void SelectBox(box Box) { Box.highlightBox(); bool tooMuch = (_type == "Solo" && mySelections.Count >= 3) || (_type == "Buddy" && mySelections.Count >= 1); if (tooMuch) { unSelectBox(mySelections[0]); mySelections.Add(Box); } else { mySelections.Add(Box); } }