예제 #1
0
        private void btn_Table1_Click(object sender, EventArgs e)
        {
            if (btn_Table1.BackColor == Color.Blue)
            {
                btn_Table1.BackColor = Color.Red;
                Order1 OrderTable1 = new Order1();
                OrderTable1.Show();
            }

            else if (btn_Table1.BackColor == Color.Red)
            {
                btn_Table1.BackColor = Color.Black;
            }
            else if (btn_Table1.BackColor == Color.Black)
            {
                btn_Table1.BackColor = Color.Green;
            }
            else if (btn_Table1.BackColor == Color.Green)
            {
                btn_Table1.BackColor = Color.Pink;
            }
            else
            {
                btn_Table1.BackColor = Color.Blue;
            }
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Order1 OrderTable1 = new Order1();

            OrderTable1.Show();
        }