Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            IConvert thai = new NumToThaiWord();
            IConvert eng = new NumToEngWord();

            if (radioButton1.Checked)
            {
                label1.Text = readLetter(thai, textBox1.Text);
            }
            else
            {
                label1.Text = readLetter(eng, textBox1.Text);
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            IConvert thai = new NumToThaiWord();
            IConvert eng  = new NumToEngWord();

            if (radioButton1.Checked)
            {
                label1.Text = readLetter(thai, textBox1.Text);
            }
            else
            {
                label1.Text = readLetter(eng, textBox1.Text);
            }
        }