Whatever you do, I suggest you test whether the result of the 'switch statement gave a valid result before executing any code that
depends on a valid result::
int[] Stment = null;
switch (level)
{
case 5:
Stment = new int[] {5, 10, 15, 20};
break;
case 50:
Stment = new int[] {50, 60, 70, 80};
break;
}
if (Stment == null)
{
}
else
{
string disp = string.Join(Environment.NewLine, Stment);
MessageBox.Show(disp);
}