Exemplo n.º 1
0
        protected override string GetText(IFeature feature)
        {
            var loc = (INetworkLocation)feature;

            //return locationname..segment name or value of the feature
            if (LabelColumn == "Branch")
            {
                return(loc.Branch.Name);
            }
            if (LabelColumn == "Offset")
            {
                return(loc.Offset.ToString());
            }

            return(Coverage.Evaluate(loc).ToString());
        }