Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e) // The kitchenware is popped from the stack.
 {
     StackArray.Pop();
     if (StackArray.top == -1)
     {
         label1.Visible = false;
     }
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 private void button4_Click(object sender, EventArgs e) // This is where you empty the array
 {
     StackArray.WashAll();
 }
Ejemplo n.º 4
0
 private void button3_Click(object sender, EventArgs e) // Shows the name of the kitchenware on the top
 {
     StackArray.Ibabaw();
 }