Exemplo n.º 1
0
        private void CheckSchengenTransfer()
        {
            if (SchengenAirport.Contains(Segments[0].DepartureAirport))
            {
                return;
            }

            for (var i = 0; i < Segments.Count - 1; i++)
            {
                if (SchengenAirport.Contains(Segments[i].DepartureAirport) &&
                    SchengenAirport.Contains(Segments[i + 1].DepartureAirport))
                {
                    AddMessage("不允许在申根内转机。");
                    InvalidRoute();
                    return;
                }
            }
        }
Exemplo n.º 2
0
 private static bool IsTransferForbiddenInUs(string code) => SchengenAirport.Contains(code) || USForbiddenTransferOrigin.Contains(code);