Exemplo n.º 1
0
        /// <summary>
        /// 是否包含
        /// </summary>
        /// <param name="Swap"></param>
        /// <returns></returns>
        public int HasSwap(ISwap Swap)
        {
            int           result = -1;
            SwapMatchKeys smk    = new SwapMatchKeys(Swap.CustomKeys);

            foreach (ISwap sp in this.swaplist)
            {
                if (smk.IsSwap(sp))
                {
                    result = this.swaplist.IndexOf(sp);
                }
            }
            return(result);
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Keys"></param>
        /// <returns></returns>
        public List <ISwap> FindSwaps(List <object> Keys)
        {
            ISwapMatch sm = new SwapMatchKeys(Keys);

            return(this.FindSwaps(sm));
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Keys"></param>
        /// <returns></returns>
        public ISwap FindSwap(List <object> Keys)
        {
            ISwapMatch sm = new SwapMatchKeys(Keys);

            return(this.FindSwap(sm));
        }