示例#1
0
文件: Form1.cs 项目: ksenksenon/Works
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            var phone = new RegularExpressions(textBox1.Text);

            textBox1.BackColor = phone.isPhone(textBox1.Text) ? SystemColors.Window : SystemColors.Info;
        }
示例#2
0
文件: Form1.cs 项目: ksenksenon/Works
        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            var time = new RegularExpressions(textBox2.Text);

            textBox2.BackColor = time.isTime(textBox2.Text) ? SystemColors.Window : SystemColors.Info;
        }
示例#3
0
文件: Form1.cs 项目: ksenksenon/Works
        private void button1_Click(object sender, EventArgs e)
        {
            var time = new RegularExpressions(textBox2.Text);

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