private void UpdateAzimuthFromTo(AzimuthTypes fromType, AzimuthTypes toType)
{
try
{
double angle = Azimuth;
if (fromType == AzimuthTypes.Degrees && toType == AzimuthTypes.Mils)
angle *= 17.777777778;
else if (fromType == AzimuthTypes.Mils && toType == AzimuthTypes.Degrees)
angle *= 0.05625;
Azimuth = angle;
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}