Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int i = client.BuyTickets(2);

            if (i == 1)
            {
                this.textBox1.Text = "购买成功,";
            }
            this.textBox1.Text += "剩余车票还有" + client.GetRemainingNum().ToString();
        }