// int tst = -1; private void Ser_SelectionChanged(object sender, SelectionChangedEventArgs e) { if ((sender as ListPicker).SelectedItem != ff1) { SerId = ((sender as ListPicker).SelectedItem as Service).Id; Subser.SelectedItem = ff; Subser.UpdateLayout(); } }
void client_getServiceCompleted(object sender, getServiceCompletedEventArgs e) { List <Service> ss = e.Result.ToList(); // Ser.ItemsSource = e.Result; ff = new Service(); ff.Name = " "; ss.Add(ff); Subser.ItemsSource = ss; Subser.SelectedItem = ff; Subser.UpdateLayout(); IsInitSub = true; }