public void Reset() { if (BrowseContentDialog != null) { BrowseContentDialog.Reset(); } }
private void initializeBrowsePage() { // Create browse control browseDialog = new BrowseContentDialog() { Filter = Core.DataSources.Filter.GeoprocessingServices, DataSourceProvider = ViewUtility.GetDataSourceProvider(), ConnectionsProvider = ViewUtility.GetConnectionsProvider(), Style = ResourceUtility.LoadEmbeddedStyle("Themes/GPBrowseStyle.xaml", "GPBrowseStyle"), SelectedResourceUrl = configuration != null && configuration.TaskEndPoint != null ? configuration.TaskEndPoint.AbsoluteUri : null, HorizontalAlignment = HorizontalAlignment.Stretch, HorizontalContentAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch, VerticalContentAlignment = VerticalAlignment.Stretch }; if (configuration != null) { browseDialog.ShowRestrictedServices = configuration.UseProxy; } // Encapsulate browse control in a wizard page browsePage = new WizardPage() { Content = browseDialog, Heading = ESRI.ArcGIS.Mapping.GP.Resources.Strings.BrowseToGP, }; // Bind the selected resource URL of the browse control to whether the input // of the browse page is valid. Validation state will be updated when the // selected resource is updated. Binding b = new Binding("SelectedResourceUrl") { Source = browseDialog, Converter = new IsNotNullOrEmptyConverter() }; BindingOperations.SetBinding(browsePage, WizardPage.InputValidProperty, b); // When a new GP task is selected, wire handler to retrieve info from service endoint browseDialog.SelectedResourceChanged += GPTaskEndpoint_Changed; }