Exemple #1
0
        public override void setCoord(MapPoint mapPt)
        {
            string coord = string.Format("X = {0}, Z = {1}",
                                         Math.Round(mapPt.X, 2), Math.Round(mapPt.Y, 2));
            IViewHolder viewHolder = _parent as IViewHolder;

            if (viewHolder != null)
            {
                viewHolder.setCoord(coord);
            }
        }
Exemple #2
0
        public virtual void setCoord(MapPoint mapPt)
        {
            string format = "X = {0}, Y = {1}";

            if (eMap.MapType == EngineeringMapType.GeneralProfileMap)
            {
                format = "X = {0}, Z = {1}";
            }

            string coord = string.Format(format,
                                         Math.Round(mapPt.X, 2), Math.Round(mapPt.Y, 2));
            IViewHolder viewHolder = _parent as IViewHolder;

            if (viewHolder != null)
            {
                viewHolder.setCoord(coord);
            }
        }