Пример #1
0
        /// <summary>
        /// Makes the chain relationship between two transits.
        /// </summary>
        /// <param name="transit">The chain transit object. This transit will be operated after the transit is done.</param>
        void AddChainedTransit(Transit transit)
        {
            if (_checker.Contains(transit))
            {
                throw new InvalidOperationException("Cannot add the duplicate transit.");
            }

            _checker.Add(transit);
            Interop.Elementary.elm_transit_chain_transit_add(_handle, transit._handle);
        }