public MatchItem(string[] AllArr, string SelectString, int selectNum, int MissNum)
 {
     AllStr    = AllArr;
     LongItem  = SelectString;
     SelectCnt = selectNum;
     MissCnt   = MissNum;
     ShortItem = string.Join(",", CombinClass.getReconvertString(AllArr, SelectString.Split(',')));
     SubItems  = new Dictionary <int, CombinClass>();
     for (int i = 0; i < MissNum; i++)
     {
         CombinClass cc = new CombinClass(LongItem, selectNum - i);
         SubItems.Add(selectNum - i, cc);
         SubItemMatchCnt.Add(selectNum - i, 0);
     }
 }
        List <ChanceClass> getChances(CommCollection_KLXxY sc, CombinClass restComb, string[] AllArr, ExpectData ed)
        {
            List <ChanceClass> ret = new List <ChanceClass>();

            for (int i = 0; i < restComb.Count; i++)
            {
                ChanceClass_ForCombinXxY cc = new ChanceClass_ForCombinXxY();
                cc.AllNums               = 11;
                cc.SelectNums            = 5;
                cc.strAllTypeBaseOdds    = sc.strAllTypeOdds;
                cc.strCombinTypeBaseOdds = sc.strCombinTypeOdds;
                cc.strPermutTypeBaseOdds = sc.strPermutTypeOdds;

                string        a7   = restComb[i];
                string[]      Arr4 = CombinClass.getReconvertString(AllArr, a7.Split(','));
                List <string> al   = new List <string>();
                for (int j = 0; j < Arr4.Length - 1; j++)
                {
                    al.Add(string.Format("A2/{0},{1}", Arr4[j], Arr4[j + 1]));
                }
                //al.Add(string.Format("A2/{0}", string.Join(",",Arr4)));//支持2码多数
                cc.ChanceCode = string.Format("A7/{0}+{1}", a7, string.Join("+", al));


                cc.UnitCost   = 2;
                cc.ChipCount  = 4;
                cc.ChanceType = 2;
                cc.InputTimes = 1;
                //cc.AllowMaxHoldTimeCnt = this.AllowMaxHoldTimeCnt;
                cc.InputExpect = ed;
                cc.StragId     = this.GUID;
                //cc.MinWinRate = this.CommSetting.GetGlobalSetting().DefaultHoldAmtSerials.MaxRates[cc.ChipCount - 1];
                cc.IsTracer            = 0;
                cc.HoldTimeCnt         = 1;
                cc.Odds                = this.CommSetting.GetGlobalSetting().Odds;
                cc.ExpectCode          = ed.Expect;
                cc.CreateTime          = DateTime.Now;
                cc.UpdateTime          = DateTime.Now;
                cc.AllowMaxHoldTimeCnt = 1;
                cc.Closed              = false;
                ret.Add(cc);
            }
            return(ret);
        }