示例#1
0
 void BumfClient_GetGradeInfosListBySearchCompleted(object sender, GetGradeInfosListBySearchCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         try
         {
             if (e.Result != null)
             {
                 SelectBox = Utility.FindChildControl <CheckBox>(DaGr, "SelectAll");
                 BindDataGrid(e.Result.ToList(), e.pageCount);
             }
             else
             {
                 BindDataGrid(null, 0);
             }
             loadbar.Stop();
         }
         catch (Exception ex)
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         }
     }
 }
示例#2
0
        void BumfClient_GetGradeInfosListBySearchCompleted(object sender, GetGradeInfosListBySearchCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                try
                {
                    if (e.Result != null)
                    {
                        SelectBox = Utility.FindChildControl<CheckBox>(DaGr, "SelectAll");
                        BindDataGrid(e.Result.ToList(), e.pageCount);
                    }
                    else
                    {
                        BindDataGrid(null, 0);
                    }
                    loadbar.Stop();
                }
                catch (Exception ex)
                {

                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
                }

                
            }
        }