protected void Addflapjacks_Click(object sender, EventArgs e) { if (PanCakeNumBox1.Text == "") { return; } if (breakfastLine.Count == 0) { return; } Flapjack food; if (CrispyRadioButton1.Checked == true) { food = Flapjack.Crispy; } else if (SoggyRadioButton1.Checked == true) { food = Flapjack.Soggy; } else if (BrownedRadioButton1.Checked == true) { food = Flapjack.Soggy; } else { food = Flapjack.Banana; } Lumberjack currentlumberjack = breakfastLine.Peek(); int numOfPankakes = Int32.Parse(PanCakeNumBox1.Text); currentlumberjack.TakeFlapjacks(food, numOfPankakes); RedrawList(); }