本文整理汇总了C#中TaskFailedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# TaskFailedEventArgs类的具体用法?C# TaskFailedEventArgs怎么用?C# TaskFailedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TaskFailedEventArgs类属于命名空间,在下文中一共展示了TaskFailedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: OnFeatureLayerUpdateFailed
void OnFeatureLayerUpdateFailed(object sender, TaskFailedEventArgs e)
{
ResetGraphicsLayer();
}
开发者ID:Esri,项目名称:arcgis-viewer-silverlight,代码行数:4,代码来源:RefreshLayerCommand.cs
示例17: GeoprocessorTask_Failed
private void GeoprocessorTask_Failed(object sender, TaskFailedEventArgs e)
{
MessageBox.Show("Geoprocessing service failed: " + e.Error);
}
开发者ID:ealvarezp,项目名称:arcgis-samples-silverlight,代码行数:4,代码来源:DriveTimes.xaml.cs
示例18: _geoprocessorTask_Failed
void _geoprocessorTask_Failed(object sender, TaskFailedEventArgs e)
{
MessageBox.Show("Extract data task failed: " + e.Error.Message);
}
开发者ID:konglingjie,项目名称:arcgis-samples-silverlight,代码行数:4,代码来源:ExtractData.xaml.cs
示例19: generateRendererTask_Failed
void generateRendererTask_Failed(object sender, TaskFailedEventArgs e)
{
MessageBox.Show("Error: " + e.Error.Message);
}
开发者ID:konglingjie,项目名称:arcgis-samples-silverlight,代码行数:4,代码来源:GenerateRenderer.xaml.cs
示例20: QueryTask_Failed
private void QueryTask_Failed( object sender, TaskFailedEventArgs args )
{
HtmlPage.Window.Alert( args.Error.Message );
}
开发者ID:OliveiraThales,项目名称:GeoCache,代码行数:4,代码来源:TypeFactoryDemo.xaml.cs
注:本文中的TaskFailedEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论