示例#1
0
 private void Timkiemmde()
 {
     try
     {
         dgv_DanhSach.DataSource = SearchData.Timkiemmade1(_idKyThi, txtmade.Text);
     }
     catch (Exception ex)
     {
         Log2File.LogExceptionToFile(ex);
     }
 }
示例#2
0
 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);
     }
 }