示例#1
0
        public 配置用户信息()
        {
            InitializeComponent();
            u = new UserManege();
            DataTable table = new DataTable();

            table = u.getTable();
            dataGridView1.DataSource = table;
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            UserManege u1 = new UserManege();;

            if (u1.searchUser("root", "123456"))
            {
                MessageBox.Show("OK!!");
            }
            else
            {
                MessageBox.Show("ERROR!!");
            }
        }
示例#3
0
        public bool login_check(string userName, string passwd)
        {
            UserManege u1 = new UserManege();;

            if (u1.searchUser(userName, passwd))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }