private void btntim_Click(object sender, EventArgs e) { if (radioButton1.Checked) { DocGia dg = new DocGia(); dataGridView1.DataSource = dg.timtheoma(txttimkiem.Text); } else if (radioButton2.Checked) { DocGia dg = new DocGia(); dataGridView1.DataSource = dg.timkiemtheoten(txttimkiem.Text); } else { MessageBox.Show("Chưa có dữ liệu!"); } }