Beispiel #1
0
        private void btn_addmember_Click(object sender, EventArgs e)
        {
            //link to add member
            register_member rm = new register_member();

            rm.Show();
        }
Beispiel #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);
            }
        }