Esempio n. 1
0
File: Form1.cs Progetto: knif147/VUG
        private void btnADD_Click(object sender, EventArgs e)
        {
            //String ID_FP =  tbID_FP.Text.ToString();
            string Team_ID      = tbTeam.Text;
            string FP_FirstName = tbFirst_Name.Text;
            string FP_LastName  = tbFP_LastName.Text;

            string Date_of_Birth_FP = "";
            string Country          = "VietNam";
            string job = tbjob.Text.ToString();


            Fotball_Player_BUS.ThemCauThu(Team_ID, FP_FirstName, FP_LastName, Date_of_Birth_FP, Country, job);

            dataGridView1.DataSource = Fotball_Player_BUS.TimKiemTheoTenCauThu(tbFP_LastName.Text.ToString());
        }
Esempio n. 2
0
File: Form1.cs Progetto: knif147/VUG
 private void btSearch_Click(object sender, EventArgs e)
 {
     //tim theo ma doi
     if (cbMaDoi.Checked)
     {
         dataGridView2.DataSource = Team_BUS.TimKiemDoiTuyenTheoMaDoi(tbSearch.Text.ToString());
     }
     else
     //tim kiem theo ten doi
     if (cbTenĐoi.Checked)
     {
         dataGridView2.DataSource = Team_BUS.TimKiemTheoTenDoi(tbSearch.Text.ToString());
     }
     else
     if (cbMaCauThu.Checked)
     {
         dataGridView2.DataSource = Fotball_Player_BUS.TimKiemCauThuTheoMaCauThu(tbSearch.Text.ToString());
     }
     else
     if (cbCauThu.Checked)
     {
         dataGridView2.DataSource = Fotball_Player_BUS.TimKiemTheoTenCauThu(tbSearch.Text.ToString());
     }
 }