コード例 #1
0
 void MeetingType_GetMeetingTypeInfosCompleted(object sender, GetMeetingTypeInfosCompletedEventArgs e)
 {
     loadbar.Stop();
     IsQueryBtn = false;
     if (e.Error == null)
     {
         try
         {
             if (e.Result != null)
             {
                 //SelectBox = Utility.FindChildControl<CheckBox>(DaGr, "SelectAll");
                 BindDataGrid(e.Result.ToList(), e.pageCount);
             }
             else
             {
                 BindDataGrid(null, 0);
             }
         }
         catch (Exception ex)
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         }
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
     }
 }
コード例 #2
0
        void MeetingType_GetMeetingTypeInfosCompleted(object sender, GetMeetingTypeInfosCompletedEventArgs e)
        {
            loadbar.Stop();
            IsQueryBtn = false;
            if (e.Error == null)
            {

                try
                {
                    if (e.Result != null)
                    {
                        //SelectBox = Utility.FindChildControl<CheckBox>(DaGr, "SelectAll");
                        BindDataGrid(e.Result.ToList(), e.pageCount);
                    }
                    else
                    {
                        BindDataGrid(null, 0);
                    }

                }
                catch (Exception ex)
                {

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

            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
            }

        }