Пример #1
0
 //获取数据 2
 void Gets_VDCheckedCompleted(object sender, Gets_VDCheckedCompletedEventArgs e)
 {
     ObservableCollection<T_OA_VEHICLEDISPATCH> vehicleInfoData = e.Result;
     if (vehicleInfoData != null)
         dg.ItemsSource = vehicleInfoData.ToList();
     else
         dg.ItemsSource = null;
 }       
Пример #2
0
        //获取数据 2
        void Gets_VDCheckedCompleted(object sender, Gets_VDCheckedCompletedEventArgs e)
        {
            ObservableCollection <T_OA_VEHICLEDISPATCH> vehicleInfoData = e.Result;

            if (vehicleInfoData != null)
            {
                dg.ItemsSource = vehicleInfoData.ToList();
            }
            else
            {
                dg.ItemsSource = null;
            }
        }