示例#1
0
        private void btn_return_Click(object sender, EventArgs e)
        {
            //link to return book form
            return_bk rbk = new return_bk();

            rbk.Show();
        }
示例#2
0
        private void buttonEcllipse4_Click(object sender, EventArgs e)
        {
            register_bk     bk  = new register_bk();
            register_member rm  = new register_member();
            return_bk       rbk = new return_bk();
            borrowbk        bbk = new borrowbk();

            con = new SqlConnection(ConnectionString);
            string query = "select * from [dbo].[user_tbl] ";

            cmd = new SqlCommand(query, con);


            //create variables for

            sdr = cmd.ExecuteReader();
            con.Open();
            while (sdr.Read())
            {
                string uname = sdr["username"].ToString();
                cmbUser.Items.Add(uname);
            }
        }