private void button1_Click_1(object sender, EventArgs e)
        {
            login a = login.instance;

            if (a.exist(textBox2.Text))
            {
                if (a.find(textBox2.Text, textBox1.Text) != "")
                {
                    MessageBox.Show(a.find(textBox2.Text, textBox1.Text), "您的密码是");
                    this.Hide();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("验证码错误!");
                }
            }
            else
            {
                MessageBox.Show("用户名不存在!");
            }
        }
Beispiel #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            login a = new login();

            stall_merchant.Merchant b = new stall_merchant.Merchant();
            if (a.staffexist(textBox2.Text) || b.merchantexist(textBox2.Text))
            {
                if (a.find(textBox2.Text, textBox1.Text) != "")
                {
                    MessageBox.Show(a.find(textBox2.Text, textBox1.Text), "您的密码是");
                    this.Hide();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("验证码错误!");
                }
            }
            else
            {
                MessageBox.Show("用户名不存在!");
            }
        }