void mc_srv_select_DataFromListsCompleted(object sender, srv_select_DataFromListsCompletedEventArgs e) { boxCol.Add(new cListItem { IsSelected = true, Name = "Выбраны все" }); foreach (cListItem item in e.Result) { boxCol.Add(item); } box_Contragents.ItemsSource = boxCol; }
void proxy_srv_select_DataFromListsCompleted(object sender, srv_select_DataFromListsCompletedEventArgs e) { ucItems.configure(TL.selected_table.Name, e.Result); if (!panel_T1.Children.Contains(ucItems)) panel_T1.Children.Add(ucItems); }