void _geoprocessorTask_GetServiceInfoCompleted(object sender, GPServiceInfoEventArgs e) { LayersList.ItemsSource = e.GPServiceInfo.Parameters.FirstOrDefault(p => p.Name == "Layers_to_Clip").ChoiceList as object[]; Formats.ItemsSource = e.GPServiceInfo.Parameters.FirstOrDefault(p => p.Name == "Feature_Format").ChoiceList as object[]; if (Formats.ItemsSource != null && Formats.Items.Count > 0) { Formats.SelectedIndex = 0; } }
void _geoprocessorTask_GetServiceInfoCompleted(object sender, GPServiceInfoEventArgs e) { LayersList.ItemsSource = e.GPServiceInfo.Parameters.FirstOrDefault(p => p.Name == "Layers_to_Clip").ChoiceList as object[]; Formats.ItemsSource = e.GPServiceInfo.Parameters.FirstOrDefault(p => p.Name == "Feature_Format").ChoiceList as object[]; if (Formats.ItemsSource != null && Formats.Items.Count > 0) Formats.SelectedIndex = 0; }