Exemplo n.º 1
0
 //--- Обработчики событий ----------------------------------------------
 void proxy_srv_select_ConsignmentExCompleted(object sender, srv_select_ConsignmentExCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         TTN = e.Result;
         TTN.setMode(ucFilter.ItemMode);
         TTN_collection = new ObservableCollection <cConsignmentEx>();
         TTN_collection.Add(TTN);
         dg_Root.ItemsSource    = TTN_collection;
         dg_TTNbase.DataContext = TTN_collection[0];
     }
     else
     {
         cwnd_Err w = new cwnd_Err("Ошибка SELECT TTN", e.OpStatus);
         w.Show();
     }
 }
Exemplo n.º 2
0
 //--- Обработчики событий ----------------------------------------------
 void proxy_srv_select_ConsignmentExCompleted(object sender, srv_select_ConsignmentExCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         TTN = e.Result;
         TTN.setMode(ucFilter.ItemMode);
         TTN_collection = new ObservableCollection<cConsignmentEx>();
         TTN_collection.Add(TTN);
         dg_Root.ItemsSource = TTN_collection;
         dg_TTNbase.DataContext = TTN_collection[0];
     }
     else
     {
         cwnd_Err w = new cwnd_Err("Ошибка SELECT TTN", e.OpStatus);
         w.Show();
     }
 }