예제 #1
0
        void client_PostDictionaryPagingCompleted(object sender, PostDictionaryPagingCompletedEventArgs e)
        {
            List <T_HR_POSTDICTIONARY> list = new List <T_HR_POSTDICTIONARY>();

            if (e.Error != null && e.Error.Message != "")
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGrid.ItemsSource  = list;
                dataPager.PageCount = e.pageCount;
            }
            ToolBar.btnRefresh.IsEnabled = true;
            loadbar.Stop();
        }
예제 #2
0
 void client_PostDictionaryPagingCompleted(object sender, PostDictionaryPagingCompletedEventArgs e)
 {
     List<T_HR_POSTDICTIONARY> list = new List<T_HR_POSTDICTIONARY>();
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                 Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result != null)
             list = e.Result.ToList();
         DtGrid.ItemsSource = list;
         dataPager.PageCount = e.pageCount;
     }
     ToolBar.btnRefresh.IsEnabled = true;
     loadbar.Stop();
 }