private void RedoList() { int num = 1; line.Items.Clear(); foreach (dog Dog in dogline) { line.Items.Add(num + " . " + Dog.Dogname); num++; } if (dogline.Count > 0) { groupBox1.Enabled = true; dog currentdog = dogline.Peek(); if (checkBox1.Checked == true) { textBox2.Text = currentdog.Dogname + " gets a " + comboBox1.Text + " and a nail trim."; } else { textBox2.Text = currentdog.Dogname + " gets a " + comboBox1.Text; } } else { groupBox1.Enabled = false; textBox2.Text = ""; } }
private void nextdog_Click(object sender, EventArgs e) { if (dogline.Count > 0) { dog nextdogline = dogline.Dequeue(); nextdogline.Beinggroom(); textBox2.Text = ""; RedoList(); } else { return; } }