Beispiel #1
0
 // 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();
     }
 }
Beispiel #2
0
        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;
        }