Exemple #1
0
        private void btn_borrow_Click(object sender, EventArgs e)
        {
            //link to borrow book form
            borrowbk bk = new borrowbk();

            bk.Show();
        }
Exemple #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);
            }
        }