Пример #1
0
 private void searchCompleted(object sender, TimLoThuocCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null && e.Result.Count > 0)
         {
             ketQuaTimKiem = e.Result;
         }
         else
         {
             ketQuaTimKiem.Clear();
         }
         this.Refresh();
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }
Пример #2
0
 private void searchCompleted(object sender, TimLoThuocCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null && e.Result.Count > 0)
         {
             ketQuaTimKiem = e.Result;
         }
         else
         {
             ketQuaTimKiem.Clear();
         }
         this.Refresh();
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }