Beispiel #1
0
                public override string ToString()
                {
                    string from, to, tr, p;

                    if (fromWhere != null)
                    {
                        from = fromWhere.ToString();
                    }
                    else
                    {
                        from = "null";
                    }
                    if (station != null)
                    {
                        to = station.ToString();
                    }
                    else
                    {
                        to = "null";
                    }
                    if (myRoute != null)
                    {
                        tr = myRoute.GetShortName();
                    }
                    else
                    {
                        tr = "пешком";
                    }
                    if (prev != null)
                    {
                        p = prev.ToString();
                    }
                    else
                    {
                        p = "null";
                    }
                    return /*p+" -->> */ ("(" + totalTime.ToString() + ") " + to + " (" + tr + ")"); // from " + from + " to
                }