namespace ch03all
{
    public partial class jiujiuMutiply : Form
    {
        public jiujiuMutiply()
        {
            InitializeComponent();
        }

        private void jiujiuMutiply_Load(object sender, EventArgs e)
        {
            for (int i = 1; i <= 9; i++)
            {
                for (int j = 1; j <= 9; j++)
                {
                    if (i != j)
                    {                       
                            this.textBox1.Text += i + "*" + j + "=" + i * j + "   ";
                    }
                    else
                    {
                        this.textBox1.Text += i + "*" + j + "=" + i * j + "\r\n";
                        break;
                    }
                }
            } 
        }
        int num = 1;
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (num < textBox1.Text.Length)
            {
                textBox2.Text = textBox1.Text.Substring(0, num);
                num = num + 1;
            }
            else
            {
                timer1.Enabled = false;
            }
        }     

        private void textBox2_Click(object sender, EventArgs e)
        {
            timer1.Enabled = true;
        }
    }
}