Ejemplo n.º 1
0
        void setDataO1(string retbuff, string strDateTarg, string placeTarg, string racenumTarg)
        {
            JVData_Struct.JV_O1_ODDS_TANFUKUWAKU mO1Data =
                new JVData_Struct.JV_O1_ODDS_TANFUKUWAKU();
            mO1Data.SetDataB(ref retbuff);

            string strJyo = cCommon.JyoCord(mO1Data.id.JyoCD);

            if (!(strDateTarg == mO1Data.id.Year + mO1Data.id.MonthDay &&
                  placeTarg == strJyo &&
                  mO1Data.id.RaceNum == racenumTarg))
            {
                return;
            }

            for (int i = 0; i < 18; i++)
            {
                if (mO1Data.OddsTansyoInfo[i].Umaban.Trim() == "")
                {
                    continue;
                }
                clsRaceUma cRaceUma = new clsRaceUma();
                cRaceUma.Umaban = int.Parse(mO1Data.OddsTansyoInfo[i].Umaban);
                cRaceUma.Ninki  = int.Parse(mO1Data.OddsTansyoInfo[i].Ninki);
                listUmatanOddsO1.Add(cRaceUma);
            }
        }
Ejemplo n.º 2
0
        public List <clsRaceUma> setDataO1(string retbuff, string strDateTarg, string placeTarg, string racenumTarg)
        {
            List <clsRaceUma> ret = new List <clsRaceUma>();

            JVData_Struct.JV_O1_ODDS_TANFUKUWAKU mO1Data =
                new JVData_Struct.JV_O1_ODDS_TANFUKUWAKU();
            mO1Data.SetDataB(ref retbuff);

            string strJyo = JyoCord(mO1Data.id.JyoCD);

            if (!(strDateTarg == mO1Data.id.Year + mO1Data.id.MonthDay &&
                  placeTarg == strJyo &&
                  mO1Data.id.RaceNum == racenumTarg))
            {
                return(null);
            }

            for (int i = 0; i < 18; i++)
            {
                if (mO1Data.OddsTansyoInfo[i].Umaban.Trim() == "")
                {
                    continue;
                }
                if (mO1Data.OddsTansyoInfo[i].Ninki.Contains("*"))
                {
                    continue;
                }
                clsRaceUma cRaceUma = new clsRaceUma();
                cRaceUma.Umaban = int.Parse(mO1Data.OddsTansyoInfo[i].Umaban);
                cRaceUma.Ninki  = int.Parse(mO1Data.OddsTansyoInfo[i].Ninki);
                ret.Add(cRaceUma);
            }
            return(ret);
        }