private void playRps(OptionsEnum userChoice) { OptionsEnum compChose = GameController.ComputerChoice(); String result = GameController.Result(userChoice, compChose).ToString(); lblResult.Text = "Result: " + result; lblComputerChoice.Text = "Computer chose: " + compChose.ToString(); switch (result) { case "Win": winCount += 1; break; case "Lose": lostCount += 1; break; default: drawCount += 1; break; } lblWon.Text = "Won: " + winCount.ToString(); lblLost.Text = "Lost: " + lostCount.ToString(); lblDraw.Text = "Draw: " + drawCount.ToString(); }
public OptionItem(OptionsEnum optionsEnum, string shortName, string alias, bool shouldHaveValue, string description) { OptionsEnum = optionsEnum; Name = optionsEnum.ToString().ToCamelCase(); ShortName = shortName; Alias = alias; ShouldHaveValue = shouldHaveValue; Description = description; }