private double Angle_2_Radians(String inAngle, esriDirectionUnits inAngleUnits)
        {
            IAngularConverter pAng = new AngularConverter();

            if (pAng.SetString(inAngle, esriDirectionType.esriDTPolar, inAngleUnits))
            {
                double result = pAng.GetAngle(esriDirectionType.esriDTPolar, esriDirectionUnits.esriDURadians);
                return(result);
            }
            else
            {
                return(-999);
            }
        }
        private double DirectionString_2_PolarRadians(String inDirection, esriDirectionType ConvertFromDirectionType,
                                                      esriDirectionUnits ConvertFromDirectionUnits)
        {
            IAngularConverter pAng = new AngularConverter();

            if (pAng.SetString(inDirection, ConvertFromDirectionType, ConvertFromDirectionUnits))
            {
                double result = pAng.GetAngle(esriDirectionType.esriDTPolar, esriDirectionUnits.esriDURadians);
                return(result);
            }
            else
            {
                return(-999);
            }
        }
        private double DirectionString_2_NorthAzimuth(String inBearing, esriDirectionType ConvertFromDirectionType,
                                                      esriDirectionUnits ConvertFromDirectionUnits)
        {
            IAngularConverter pAng = new AngularConverter();

            if (pAng.SetString(inBearing, ConvertFromDirectionType, ConvertFromDirectionUnits))
            {
                double result = pAng.GetAngle(esriDirectionType.esriDTNorthAzimuth, esriDirectionUnits.esriDURadians);
                return(result);
            }
            else
            {
                return(-999);
            }
        }
   private double DirectionString_2_PolarRadians(String inDirection, esriDirectionType ConvertFromDirectionType,
 esriDirectionUnits ConvertFromDirectionUnits)
   {
       IAngularConverter pAng = new AngularConverter();
         if (pAng.SetString(inDirection, ConvertFromDirectionType, ConvertFromDirectionUnits))
         {
       double result = pAng.GetAngle(esriDirectionType.esriDTPolar, esriDirectionUnits.esriDURadians);
       return result;
         }
         else
       return -999;
   }
    private double DirectionString_2_NorthAzimuth(String inBearing, esriDirectionType ConvertFromDirectionType,
 esriDirectionUnits ConvertFromDirectionUnits)
    {
        IAngularConverter pAng = new AngularConverter();
          if (pAng.SetString(inBearing, ConvertFromDirectionType, ConvertFromDirectionUnits))
          {
        double result = pAng.GetAngle(esriDirectionType.esriDTNorthAzimuth, esriDirectionUnits.esriDURadians);
        return result;
          }
          else
        return -999;
    }
 private double Angle_2_Radians(String inAngle, esriDirectionUnits inAngleUnits)
 {
     IAngularConverter pAng = new AngularConverter();
       if (pAng.SetString(inAngle, esriDirectionType.esriDTPolar, inAngleUnits))
       {
     double result = pAng.GetAngle(esriDirectionType.esriDTPolar, esriDirectionUnits.esriDURadians);
     return result;
       }
       else
     return -999;
 }