none
How to get a direction? RRS feed

  • Question

  • public string GetLineDirectiom(Station from, Station to, Line commonLine)
            {
                bool fromNextTo = true;
    
    
                //to.Lines.Count();
                //to.ToString();
                var Finalto = commonLine.Next(from);
                while (Finalto == null)
                {
    
                }
    
                if (fromNextTo)
                    return "next";
                else return "previous";
            }

    Tuesday, January 21, 2020 9:37 AM

Answers