Ejemplo n.º 1
0
 private void _client_KHOI_LstCompleted(object sender, KHOI_LstCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         _dataItem = new ObservableExpandCollection();
         foreach (var item in e.Result)
             _dataItem.Add(new KHOI_EX() { ItemContent = item });
         _dataItem.Refesh();
         OnPropertyChanged("DataItem");
     }
 }
 private void _clientKhoi_KHOI_LstCompleted(object sender, KHOI_LstCompletedEventArgs e)
 {
     try
     {
         DataItemKhoi.Clear();
         foreach (var item in e.Result)
             DataItemKhoi.Add(item);
         OnPropertyChanged("CurrentItem");
     }
     catch { MessagePop.SetError(CommonResource.ServerConnectError); }
 }
Ejemplo n.º 3
0
 private void _clientKhoi_KHOI_LstCompleted(object sender, KHOI_LstCompletedEventArgs e)
 {
     try
     {
         if (e.Result.Count > 0)
         {
             DataItemKhoi = new ObservableExpandCollection<KHOI_LstResult>(e.Result);
             OnPropertyChanged("DataItemKhoi");
         }
     }
     catch (Exception ex)
     {
         MessagePop.SetError(ex.Message);
     }
 }