当前位置: 首页>>代码示例>>C#>>正文


C# TaskFailedEventArgs类代码示例

本文整理汇总了C#中TaskFailedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# TaskFailedEventArgs类的具体用法?C# TaskFailedEventArgs怎么用?C# TaskFailedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TaskFailedEventArgs类属于命名空间,在下文中一共展示了TaskFailedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MyRouteTask_Failed

        private void MyRouteTask_Failed(object sender, TaskFailedEventArgs e)
        {
            string errorMessage = "Routing error: ";
            errorMessage += e.Error.Message;
            foreach (string detail in (e.Error as ServiceException).Details)
                errorMessage += "," + detail;

            MessageBox.Show(errorMessage);

            stopsGraphicsLayer.Graphics.RemoveAt(stopsGraphicsLayer.Graphics.Count - 1);
        }
开发者ID:ahthakore,项目名称:arcgis-samples-silverlight,代码行数:11,代码来源:Routing.xaml.cs

示例2: task_Fault

		private void task_Fault(object sender, TaskFailedEventArgs args)
		{
			base.OnProgress(100);
			InitializationFailure = args.Error;
			base.Initialize();
		}
开发者ID:yulifengwx,项目名称:arcgis-viewer-silverlight,代码行数:6,代码来源:HeatMapFeatureLayer.cs

示例3: GeometryService_Failed

 private void GeometryService_Failed(object sender, TaskFailedEventArgs e)
 {
     MessageBox.Show("Geometry Service error: " + e.Error);
 }
开发者ID:ahthakore,项目名称:arcgis-samples-silverlight,代码行数:4,代码来源:Cut.xaml.cs

示例4: QueryTask_Failed

        /// <summary>
        /// Handles failed QueryTask by displaying an error message. 
        /// </summary>
        private void QueryTask_Failed(object sender, TaskFailedEventArgs e)
        {
            // Unhook the queryTask.Failed even
            queryTask.Failed -= QueryTask_Failed;

            // Show failure error message
            TextBlock failureText = new TextBlock()
            {
                Margin = new Thickness(10),
                Text = e.Error.Message
            };
            string windowTitle = string.Format("{0}", "Error");

            MapApplication.Current.ShowWindow(windowTitle, failureText, true);
        }
开发者ID:Esri,项目名称:arcgis-viewer-silverlight,代码行数:18,代码来源:QueryRelatedViewModel.cs

示例5: FeatureLayer_UpdateFailed

 private void FeatureLayer_UpdateFailed(object sender, TaskFailedEventArgs e)
 {
 }
开发者ID:RockDr,项目名称:route-monitor-for-geoevent,代码行数:3,代码来源:FeatureLayerHelper.cs

示例6: task_Failed

        private void task_Failed(object sender, TaskFailedEventArgs e)
        {
            string errorMessage = "Routing error: ";
            errorMessage += e.Error.Message;
            foreach (string detail in (e.Error as ServiceException).Details)
                errorMessage += "," + detail;

            MessageBox.Show(errorMessage);
        }
开发者ID:rkBiswal,项目名称:arcgis-samples-silverlight,代码行数:9,代码来源:RoutingDirections.xaml.cs

示例7: featureLayer_UpdateFailed

 void featureLayer_UpdateFailed(object sender, TaskFailedEventArgs e)
 {
     MessageBox.Show(e.Error.Message,
         "FeatureLayer update failed", MessageBoxButton.OK);
 }
开发者ID:konglingjie,项目名称:arcgis-samples-silverlight,代码行数:5,代码来源:FeatureSetJson.xaml.cs

示例8: Locator_Failed

 // Raised when the locator search fails
 private void Locator_Failed(object sender, TaskFailedEventArgs e)
 {
     IsSearching = false; // Reset busy state
     OnSearchFailed(e.Error); // Raise failed event
 }
开发者ID:Esri,项目名称:arcgis-viewer-silverlight,代码行数:6,代码来源:ArcGISLocatorPlaceSearchProvider.cs

示例9: GeoprocessorTask_Failed

 private void GeoprocessorTask_Failed(object sender, TaskFailedEventArgs e)
 {
     InformationText.Text = descText;
     jobid = null;
     MessageBox.Show("Geoprocessing service failed: " + e.Error);
 }
开发者ID:rkBiswal,项目名称:arcgis-samples-silverlight,代码行数:6,代码来源:DriveTimes.xaml.cs

示例10: QueryTask_Failed

 private void QueryTask_Failed(object sender, TaskFailedEventArgs args)
 {
     MessageBox.Show("Query failed: " + args.Error);
     MyDrawObject.IsEnabled = true;
 }
开发者ID:ahthakore,项目名称:arcgis-samples-silverlight,代码行数:5,代码来源:SDSSpatialQuery.xaml.cs

示例11: LocatorTask_Failed

 private void LocatorTask_Failed(object sender, TaskFailedEventArgs e)
 {
     MessageBox.Show("Locator service failed: " + e.Error);
 }
开发者ID:konglingjie,项目名称:arcgis-samples-silverlight,代码行数:4,代码来源:AddressToLocation.xaml.cs

示例12: QueryTaskFailed

 private void QueryTaskFailed(object sender, TaskFailedEventArgs args)
 {
     QueryCompleted(0, (QueryType) args.UserState);
 }
开发者ID:esride-apf,项目名称:arcAKTUELL_2012-03,代码行数:4,代码来源:Model.cs

示例13: gpAircraftRouteGen_Failed

 void gpAircraftRouteGen_Failed(object sender, TaskFailedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine(e.Error.ToString());
 }
开发者ID:ruisebastiao,项目名称:solutions-widgets-wpf,代码行数:4,代码来源:AircraftRouteGenLineToolbar.xaml.cs

示例14: FindTask_Failed

 private void FindTask_Failed(object sender, TaskFailedEventArgs args)
 {
     MessageBox.Show("Find failed: " + args.Error);
 }
开发者ID:konglingjie,项目名称:arcgis-samples-silverlight,代码行数:4,代码来源:Find.xaml.cs

示例15: LocationToAddressLocatorTask_Failed

 private void LocationToAddressLocatorTask_Failed(object sender, TaskFailedEventArgs e)
 {
     MessageBox.Show("Unable to determine an address. Try selecting a location closer to a street.");
 }
开发者ID:ApexGIS,项目名称:developer-support,代码行数:4,代码来源:MainWindow.xaml.cs


注:本文中的TaskFailedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。