/// <summary>
        /// Convert the object to string.
        /// </summary>
        /// <param name="style"></param>
        /// <returns></returns>
        public new string ToString(Angle.DataStyle style)
        {
            string temp = base.ToString(style);

            if (!double.IsNaN(Height))
            {
                temp += ", H:" + Height.ToString("# ###.###");
            }

            return(temp);
        }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="style"></param>
 /// <returns></returns>
 public string ToString(Angle.DataStyle style)
 {
     if (Latitude == null)
     {
         return(string.Empty);
     }
     else
     {
         return("B:" + Latitude.ToString(style) + ", L:" + Longitude.ToString(style));
     }
 }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="style"></param>
        /// <returns></returns>
        public string ToString(Angle.DataStyle style)
        {
            string temp = string.Empty;

            if (!double.IsNaN(Range))
            {
                temp += "R:" + Range.ToString("# ###.###");
            }

            if (Azimuth != null)
            {
                temp += ", A:" + Azimuth.ToString(style) + ", E:" + Elevation.ToString(style);
            }

            return(temp);
        }