This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Haversine | |
/// <summary> | |
/// Gets the distance between two points in meters using the Haversine Formula. | |
/// </summary> | |
/// <param name="startLong">The start longitude.</param> | |
/// <param name="startLat">The start latitude.</param> | |
/// <param name="endLat">The end latitude.</param> | |
/// <param name="endLong">The end longitude.</param> | |
/// <returns>Distance between the two points in meters</returns> | |
public static double GetDistanceHaversine(double startLong, double startLat, double endLat, double endLong) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ObservableCollection2<T> : ObservableCollection<T> | |
{ | |
public void AddRange(IEnumerable<T> items) | |
{ | |
InsertRange(Count, items); | |
} | |
public void InsertRange(int index, IEnumerable<T> items) | |
{ | |
int count = 0; | |
foreach(var item in items) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Windows.Foundation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Windows.ApplicationModel.Resources; | |
namespace TestHarness | |
{ | |
/// <summary> | |
/// A message handler for simulating web requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ESRI.ArcGIS.Runtime; | |
using System; | |
using Windows.UI.Xaml.Media; | |
namespace GeometryUtils | |
{ | |
public class PointAnimator | |
{ | |
public PointAnimator(MapPoint point, MapPoint to, TimeSpan duration) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
[TestCategory("Naming guidelines")] | |
public void TasksReturningMethodsArePostfixedAsync() | |
{ | |
var asm = typeof(SomeTypeInMyAssembly).Assembly; | |
StringBuilder sb = new StringBuilder(); | |
foreach (var type in asm.GetExportedTypes()) | |
{ | |
foreach (var mi in type.GetMethods(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | | |
System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Static | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Esri.ArcGISRuntime.Symbology; | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using System.Windows; | |
#if NETFX_CORE | |
using Windows.UI.Xaml.Markup; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.Foundation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Esri.ArcGISRuntime.Geometry; | |
using Esri.ArcGISRuntime.Location; | |
using System; | |
using System.Linq; | |
using System.Threading.Tasks; | |
#if NETFX_CORE | |
using Windows.Foundation; | |
using Windows.UI.Xaml; | |
#else | |
using System.Windows.Threading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemsControl x:Name="items" Grid.RowSpan="3" ItemsSource="{x:Bind Data}" Background="LightGray"> | |
<ItemsControl.ItemsPanel> | |
<ItemsPanelTemplate> | |
<local:StaggeredGridPanel /> | |
</ItemsPanelTemplate> | |
</ItemsControl.ItemsPanel> | |
<ItemsControl.ItemTemplate> | |
<DataTemplate> | |
<Border Margin="5" Background="{Binding Brush}" Height="{Binding Height}"> | |
<TextBlock Text="{Binding Name}" HorizontalAlignment="Center" VerticalAlignment="Center" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.Globalization.CompareInfo' | |
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.Globalization.CultureData' | |
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.Globalization.TextInfo' | |
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'MyProjectNameSpace.MyTypeHere' | |
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'MyProjectNameSpace.MyTypeHere' | |
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : System.ArgumentNullException: Value cannot be null. | |
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : Parameter name: key | |
4>C:\Program Files (x86)\MSBuild\Micro |