コード例 #1
0
 void client_GetCompanyHistoryDateCompleted(object sender, GetCompanyHistoryDateCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         loadbar.Stop();
     }
     else
     {
         if (e.Result != null)
         {
             DtGrid.ItemsSource = e.Result;
             PagedCollectionView pcv = new PagedCollectionView(e.Result);
             pcv.PageSize          = 3;
             dataPager.DataContext = pcv;
             client.GetCompanyHistoryAsync(currentDate);
         }
         else
         {
             loadbar.Stop();
         }
     }
 }