/// <summary> /// Get the distance from one grid to another. /// </summary> /// <param name="destination"></param> /// <returns></returns> private string GetDistance(string destination) { string homeLocation = settings.Grid; double distance = MaidenheadLocator.Distance(homeLocation.ToUpper(), destination.ToUpper()); if (settings.Unit == Units.Miles) { distance /= 1.6; } return(string.Format("{0:0.##}", distance)); }