Exemple #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);
        }
Exemple #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));
        }
Exemple #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));
        }