Ejemplo n.º 1
0
 private void _client_NHAN_SU_LstCompleted(object sender, NHAN_SU_LstCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         _dataItem = new ObservableExpandCollection();
         foreach (var item in e.Result)
             _dataItem.Add(new NHAN_SU_EX() { ItemContent = item });
         _dataItem.Refesh();
         OnPropertyChanged("DataItem");
     }
 }
Ejemplo n.º 2
0
 private void _clientNhanSu_NHAN_SU_LstCompleted(object sender, NHAN_SU_LstCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             DataItemNhanSu.Clear();
             foreach (var item in e.Result)
                 DataItemNhanSu.Add(item);
         }
     }
     catch (Exception ex)
     {
         MessagePop.SetError(ex.Message);
     }
 }