示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            facultypannel fp = new facultypannel();

            fp.Show();
        }
示例#2
0
        public int logininfos(string un, string pa)
        {
            if (un == "" || pa == "")
            {
                return(0);
            }
            else
            {
                user = un;
                pass = pa;

                if (user == "admin" && pass == "1234")
                {
                    facultypannel f3 = new facultypannel();
                    f3.Show();
                    return(1);
                }
                else
                {
                    return(2);
                }
            }
        }