Esempio n. 1
0
        //void aa_GetQueryAgentCompleted(object sender, GetQueryAgentCompletedEventArgs e)
        //{
        //    try
        //    {
        //        string aa = "";
        //        if (e.Result != null)
        //        {
        //            aa.ToString();
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
        //    }
        //}

        void SoaChannel_GetAgentSetListByIdCompleted(object sender, GetAgentSetListByIdCompletedEventArgs e)
        {
            loadbar.Stop();//读取完数据后,停止动画,隐藏
            try
            {
                if (e.Result != null)
                {
                    BindDataGrid(e.Result.ToList(), e.pageCount);
                }
                else
                {
                    BindDataGrid(null, 0);
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
            }
        }
Esempio n. 2
0
        //void aa_GetQueryAgentCompleted(object sender, GetQueryAgentCompletedEventArgs e)
        //{
        //    try
        //    {
        //        string aa = "";
        //        if (e.Result != null)
        //        {
        //            aa.ToString();
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
        //    }
        //}

        void SoaChannel_GetAgentSetListByIdCompleted(object sender, GetAgentSetListByIdCompletedEventArgs e)
        {
            loadbar.Stop();//读取完数据后,停止动画,隐藏
            try
            {
                if (e.Result != null)
                {
                    BindDataGrid(e.Result.ToList(), e.pageCount);
                }
                else
                {
                    BindDataGrid(null, 0);
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
            }
        }