Esempio n. 1
0
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            var phone = new RegularExpressions(textBox1.Text);

            textBox1.BackColor = phone.isPhone(textBox1.Text) ? SystemColors.Window : SystemColors.Info;
        }
Esempio n. 2
0
        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            var time = new RegularExpressions(textBox2.Text);

            textBox2.BackColor = time.isTime(textBox2.Text) ? SystemColors.Window : SystemColors.Info;
        }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var time = new RegularExpressions(textBox2.Text);

            MessageBox.Show("Time: " + time.convertTime(textBox2.Text));
        }