private void button2_Click(object sender, EventArgs e) // The kitchenware is popped from the stack. { StackArray.Pop(); if (StackArray.top == -1) { label1.Visible = false; } }
private void executePush() //this is wehere you stored the value of textbox into array { Kitchenware = textBox1.Text; StackArray.Push(); for (labelx = labelx + 0; labelx <= StackArray.top; labelx++) //this is where I print the text in the form for visual aide { _Labels[labelx].Visible = true; _Labels[labelx].Text = StackArray.DishWashing[StackArray.top]; } this.Close(); }
private void button4_Click(object sender, EventArgs e) // This is where you empty the array { StackArray.WashAll(); }
private void button3_Click(object sender, EventArgs e) // Shows the name of the kitchenware on the top { StackArray.Ibabaw(); }