private void Timkiemmde() { try { dgv_DanhSach.DataSource = SearchData.Timkiemmade1(_idKyThi, txtmade.Text); } catch (Exception ex) { Log2File.LogExceptionToFile(ex); } }
private void Timkiemmde() { try { if (!string.IsNullOrEmpty(txtcauhoi.Text) && !string.IsNullOrEmpty(txtmade.Text)) { dgv_DanhSach.DataSource = SearchData.Timkiemmade1(_idkythi, txtmade.Text, int.Parse(txtcauhoi.Text)); } else if (!string.IsNullOrEmpty(txtcauhoi.Text)) { dgv_DanhSach.DataSource = SearchData.Timkiemmade2(_idkythi, int.Parse(txtcauhoi.Text)); } else if (!string.IsNullOrEmpty(txtmade.Text)) { dgv_DanhSach.DataSource = SearchData.Timkiemmade1(_idkythi, txtmade.Text); } } catch (Exception ex) { Log2File.LogExceptionToFile(ex); } }