public static int SelectDraw(string seasonName) { int drawID = 0; switch (seasonName) { case "2017": drawID = 0; break; case "2018": drawID = 1; break; case "2019": drawID = 2; break; case "2020": drawID = 3; break; case "2021": drawID = 4; break; case "2022": drawID = 5; break; } DAFunctions.GetDraw(drawID); return(drawID); }
private void GetDraw() { DAFunctions.GetDraw(SeasonHandler.SelectDraw(cbo_SelectSeason.Text)); rounds = DAFunctions.draw; }