Skip to content

Commit

Permalink
Merge pull request #5 from Esri/v.next
Browse files Browse the repository at this point in the history
V.next
  • Loading branch information
gdestigter committed Jun 17, 2014
2 parents a0bb149 + 6d58847 commit 940d50c
Show file tree
Hide file tree
Showing 30 changed files with 55 additions and 554 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<Compile Include="Samples\GeoprocessingTasks\Viewshed.xaml.cs">
<DependentUpon>Viewshed.xaml</DependentUpon>
</Compile>
<Compile Include="Samples\GraphicsLayers\MovePoints.xaml.cs">
<Compile Include="Samples\Editing\MovePoints.xaml.cs">
<DependentUpon>MovePoints.xaml</DependentUpon>
</Compile>
<Compile Include="Samples\GraphicsLayers\AddInteractively.xaml.cs">
Expand Down Expand Up @@ -253,9 +253,6 @@
<Compile Include="Samples\GraphicsLayers\GraphicsSourceSample.xaml.cs">
<DependentUpon>GraphicsSourceSample.xaml</DependentUpon>
</Compile>
<Compile Include="Samples\GraphicsLayers\SmoothGraphicAnimation.xaml.cs">
<DependentUpon>SmoothGraphicAnimation.xaml</DependentUpon>
</Compile>
<Compile Include="Samples\ImageryTasks\ComputeClassStatistics.xaml.cs">
<DependentUpon>ComputeClassStatistics.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -651,7 +648,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Samples\GraphicsLayers\MovePoints.xaml">
<Page Include="Samples\Editing\MovePoints.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
Expand Down Expand Up @@ -691,10 +688,6 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Samples\GraphicsLayers\SmoothGraphicAnimation.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Samples\ImageryTasks\ComputeClassStatistics.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples
/// <subcategory>Dynamic Service Layers</subcategory>
public partial class ArcGISDynamicMapServiceLayerLocalSample : UserControl
{


/// <summary>
/// Initializes a new instance of the <see cref="ArcGISDynamicMapServiceLayerLocalSample"/> class.
/// </summary>
Expand All @@ -27,7 +25,7 @@ public ArcGISDynamicMapServiceLayerLocalSample()

InitializeComponent();

CreateLocalServiceAndDynamicLayer();
var _ = CreateLocalServiceAndDynamicLayer();
}

public async Task CreateLocalServiceAndDynamicLayer()
Expand All @@ -44,7 +42,7 @@ public async Task CreateLocalServiceAndDynamicLayer()
ServiceUri = localMapService.UrlMapService,
};

MyMapView.Map.Layers.Add(arcGISDynamicMapServiceLayer);
MyMapView.Map.Layers.Add(arcGISDynamicMapServiceLayer);
}
catch (Exception ex)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
using Esri.ArcGISRuntime.Controls;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
using Esri.ArcGISRuntime.Symbology;
using System;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples
{
/// <summary>
/// Move point graphics around using hittesting and mouse move.
/// </summary>
/// <title>Move point graphics interactively</title>
/// <category>Layers</category>
/// <subcategory>Graphics Layers</subcategory>
public partial class MovePoints : UserControl
/// Demonstrates one method of moving graphic points on the map.
/// </summary>
/// <title>Move Points</title>
/// <category>Editing</category>
public partial class MovePoints : UserControl
{

public MovePoints()
{
InitializeComponent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public GeocodeFullAddressInput()

_candidateAddressesGraphicsLayer = map1.Layers["CandidateAddressesGraphicsLayer"] as GraphicsLayer;

SetSimpleRendererSymbols();
var _ = SetSimpleRendererSymbols();
}

private async Task SetSimpleRendererSymbols()
Expand All @@ -132,7 +132,7 @@ private async Task SetSimpleRendererSymbols()
_candidateAddressesGraphicsLayer.Renderer = findResultRenderer;
}

private async Task SetupLocator()
private void SetupLocator()
{
if (!IsOnline)
{
Expand All @@ -142,7 +142,6 @@ private async Task SetupLocator()
{
_locatorTask = new OnlineLocatorTask(new Uri("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"), string.Empty);
}

}

private async void FindButton_Click(object sender, RoutedEventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,11 @@ public GeocodeSingleLineInput()

_candidateAddressesGraphicsLayer = map1.Layers["CandidateAddressesGraphicsLayer"] as GraphicsLayer;

SetSimpleRendererSymbols();
var _ = SetSimpleRendererSymbols();
}


private async Task SetSimpleRendererSymbols()
{

PictureMarkerSymbol findResultMarkerSymbol = new PictureMarkerSymbol()
{
Width = 48,
Expand All @@ -115,7 +113,7 @@ private async Task SetSimpleRendererSymbols()
_candidateAddressesGraphicsLayer.Renderer = findResultRenderer;
}

private async Task SetupLocator()
private void SetupLocator()
{
if (!IsOnline)
{
Expand All @@ -129,7 +127,6 @@ private async Task SetupLocator()

private async void FindButton_Click(object sender, RoutedEventArgs e)
{

_candidateAddressesGraphicsLayer.Graphics.Clear();

string text = SearchTextBox.Text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples
/// <summary>
/// This sample demonstrates how to add a GraphicsLayer with Graphics and Symbols to the map in XAML. The sample also shows how to add Polyline graphics to a GraphicsLayer from the code-behind.
/// </summary>
/// <title>Graphics Layer Sample</title>
/// <title>Graphics Layer</title>
/// <category>Layers</category>
/// <subcategory>Graphics Layers</subcategory>
public partial class GraphicsLayerSample : UserControl
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public LayersInitialized()

InitializeComponent();

HandleLayersInitialized();
var _ = HandleLayersInitialized();
}

async Task HandleLayersInitialized()
private async Task HandleLayersInitialized()
{
var loadresult = await mapView1.LayersLoadedAsync();
LayersInitializedProperty = "Initialized!";
Expand All @@ -63,7 +63,6 @@ async Task HandleLayersInitialized()
MessageBox.Show(string.Format("Layer {0} failed to load. {1} ", res.Layer.ID, res.LoadError.Message.ToString()));
}
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public string EndLocationText
string _localRoutingDatabase = @"..\..\..\..\..\samples-data\networks\san-diego\san-diego-network.geodatabase";
string _networkName = "Streets_ND";

private async Task SetupRouteTask()
private void SetupRouteTask()
{
if (!IsOnline)
{
Expand Down Expand Up @@ -265,9 +265,16 @@ private async Task CalculateRoute()

}

private void SolveRouteButton_Click(object sender, RoutedEventArgs e)
private async void SolveRouteButton_Click(object sender, RoutedEventArgs e)
{
CalculateRoute();
try
{
await CalculateRoute();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Sample Error");
}
}
}
}
Loading

0 comments on commit 940d50c

Please sign in to comment.