示例#1
0
        private void button5_Click(object sender, EventArgs e)
        {
            string adminnum = textBox1.Text;
            string fullname = textBox2.Text;

            if (DBMng.validateManager(adminnum, fullname))
            {
                this.Hide();
                ManagerDisplay newform = new ManagerDisplay();
                newform.ShowDialog();
            }
            else
            {
                textBox1.Text       = "";
                textBox2.Text       = "";
                this.label3.Visible = true;
            }
        }