private JTicket[] ToElectronicTicket_HPSH_D(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { string[] strArray = this.AnalyseScheme(Number, PlayTypeID).Split(new char[] { '\n' }); if (strArray == null) { return(null); } if (strArray.Length == 0) { return(null); } Money = 0.0; int num = 0; if ((Multiple % MaxMultiple) != 0) { num = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1; } else { num = Multiple / MaxMultiple; } ArrayList list = new ArrayList(); int multiple = 1; double num3 = 0.0; for (int i = 1; i < (num + 1); i++) { if ((i * MaxMultiple) < Multiple) { multiple = MaxMultiple; } else { multiple = Multiple - ((i - 1) * MaxMultiple); } for (int k = 0; k < strArray.Length; k += 5) { string number = ""; num3 = 0.0; for (int m = 0; m < 5; m++) { if ((k + m) < strArray.Length) { number = number + strArray[k + m].ToString().Split(new char[] { '|' })[0] + "\n"; num3 += 2.0 * double.Parse(strArray[k + m].ToString().Split(new char[] { '|' })[1]); } } Money += num3 * multiple; list.Add(new JTicket(0x65, this.ConvertFormatToElectronTicket_HPSH(PlayTypeID, number), multiple, num3 * multiple)); } } JTicket[] ticketArray = new JTicket[list.Count]; for (int j = 0; j < ticketArray.Length; j++) { ticketArray[j] = (JTicket)list[j]; } return(ticketArray); }
private JTicket[] ToElectronicTicket_HPCQ_ZH(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { string[] strArray = this.AnalyseScheme_ZH(Number, PlayTypeID).Split(new char[] { '\n' }); if (strArray == null) { return null; } if (strArray.Length == 0) { return null; } Money = 0.0; int num = 0; if ((Multiple % MaxMultiple) != 0) { num = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1; } else { num = Multiple / MaxMultiple; } ArrayList list = new ArrayList(); int multiple = 1; double num3 = 0.0; for (int i = 1; i < (num + 1); i++) { if ((i * MaxMultiple) < Multiple) { multiple = MaxMultiple; } else { multiple = Multiple - ((i - 1) * MaxMultiple); } for (int k = 0; k < strArray.Length; k++) { string number = ""; num3 = 0.0; number = strArray[k].ToString().Split(new char[] { '|' })[0]; num3 += 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]); Money += num3 * multiple; list.Add(new JTicket(0x12f, this.ConvertFormatToElectronTicket_HPCQ(PlayTypeID, number), multiple, num3 * multiple)); } } JTicket[] ticketArray = new JTicket[list.Count]; for (int j = 0; j < ticketArray.Length; j++) { ticketArray[j] = (JTicket)list[j]; } return ticketArray; }
private JTicket[] ToElectronicTicket_HPCQ_Mixed(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { JTicket[] ticketArray; string[] strArray = base.SplitLotteryNumber(Number); if (strArray == null) { return null; } if (strArray.Length < 1) { return null; } Money = 0.0; string[] strArray2 = new string[] { "", "", "", "", "", "", "", "", "", "", "", "" }; foreach (string str in strArray) { if (str.StartsWith("[单式]")) { string[] strArray5; (strArray5 = strArray2)[0] = strArray5[0] + str + "\n"; } else if (str.StartsWith("[复式]")) { string[] strArray6; (strArray6 = strArray2)[1] = strArray6[1] + str + "\n"; } else if (str.StartsWith("[组合玩法]")) { string[] strArray7; (strArray7 = strArray2)[2] = strArray7[2] + str + "\n"; } else if (str.StartsWith("[猜大小]")) { string[] strArray8; (strArray8 = strArray2)[3] = strArray8[3] + str + "\n"; } else if (str.StartsWith("[五星通选单式]")) { string[] strArray9; (strArray9 = strArray2)[4] = strArray9[4] + str + "\n"; } else if (str.StartsWith("[五星通选复式]")) { string[] strArray10; (strArray10 = strArray2)[5] = strArray10[5] + str + "\n"; } else if (str.StartsWith("[二星组选单式]")) { string[] strArray11; (strArray11 = strArray2)[6] = strArray11[6] + str + "\n"; } else if (str.StartsWith("[二星组选复式]")) { string[] strArray12; (strArray12 = strArray2)[7] = strArray12[7] + str + "\n"; } else if (str.StartsWith("[二星组选分位]")) { string[] strArray13; (strArray13 = strArray2)[8] = strArray13[8] + str + "\n"; } else if (str.StartsWith("[二星组选包点]")) { string[] strArray14; (strArray14 = strArray2)[9] = strArray14[9] + str + "\n"; } else if (str.StartsWith("[二星组选包胆]")) { string[] strArray15; (strArray15 = strArray2)[10] = strArray15[10] + str + "\n"; } else if (str.StartsWith("[三星包点]")) { string[] strArray16; (strArray16 = strArray2)[11] = strArray16[11] + str + "\n"; } } ArrayList list = new ArrayList(); if (strArray2[0].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_D(0xaf1, strArray2[0].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket in ticketArray) { list.Add(ticket); } } } if (strArray2[1].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_F(0xaf2, strArray2[1].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket2 in ticketArray) { list.Add(ticket2); } } } if (strArray2[2].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_ZH(0xaf3, strArray2[2].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket3 in ticketArray) { list.Add(ticket3); } } } if (strArray2[3].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_DX(0xaf4, strArray2[3].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket4 in ticketArray) { list.Add(ticket4); } } } if (strArray2[4].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_5X_TXD(0xaf5, strArray2[4].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket5 in ticketArray) { list.Add(ticket5); } } } if (strArray2[5].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_5X_TXF(0xaf6, strArray2[5].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket6 in ticketArray) { list.Add(ticket6); } } } if (strArray2[6].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_2X_ZuD(0xaf7, strArray2[6].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket7 in ticketArray) { list.Add(ticket7); } } } if (strArray2[7].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_2X_ZuF(0xaf8, strArray2[7].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket8 in ticketArray) { list.Add(ticket8); } } } if (strArray2[8].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_2X_ZuFW(0xaf9, strArray2[8].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket9 in ticketArray) { list.Add(ticket9); } } } if (strArray2[9].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_2X_ZuB(0xafa, strArray2[9].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket10 in ticketArray) { list.Add(ticket10); } } } if (strArray2[10].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_2X_ZuBD(0xafb, strArray2[10].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket11 in ticketArray) { list.Add(ticket11); } } } if (strArray2[11].Length > 0) { ticketArray = this.ToElectronicTicket_HPCQ_3X_B(0xafc, strArray2[11].ToString(), Multiple, MaxMultiple, ref Money); if (ticketArray != null) { foreach (JTicket ticket12 in ticketArray) { list.Add(ticket12); } } } JTicket[] ticketArray2 = new JTicket[list.Count]; for (int i = 0; i < ticketArray2.Length; i++) { ticketArray2[i] = (JTicket)list[i]; } return ticketArray2; }
private JTicket[] ToElectronicTicket_HPCQ_5X_TXF(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { ArrayList list = new ArrayList(); string content = ""; string canonicalNumber = ""; string[] strArray = this.ToSingle_5X_TX(Number, ref canonicalNumber); for (int i = 0; i < strArray.Length; i++) { content = content + strArray[i] + "\n"; } string[] strArray2 = this.AnalyseScheme_5X_TX(content, 0xaf5).Split(new char[] { '\n' }); if (strArray2 == null) { return null; } if (strArray2.Length == 0) { return null; } Money = 0.0; int num2 = 0; if ((Multiple % MaxMultiple) != 0) { num2 = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1; } else { num2 = Multiple / MaxMultiple; } int multiple = 1; double num4 = 0.0; for (int j = 1; j < (num2 + 1); j++) { if ((j * MaxMultiple) < Multiple) { multiple = MaxMultiple; } else { multiple = Multiple - ((j - 1) * MaxMultiple); } for (int m = 0; m < strArray2.Length; m += 5) { string number = ""; num4 = 0.0; for (int n = 0; n < 5; n++) { if ((m + n) < strArray2.Length) { number = number + strArray2[m + n].ToString().Split(new char[] { '|' })[0]; num4 += 2.0 * double.Parse(strArray2[m + n].ToString().Split(new char[] { '|' })[1]); } } Money += num4 * multiple; list.Add(new JTicket(0x138, this.ConvertFormatToElectronTicket_HPCQ(0xaf5, number), multiple, num4 * multiple)); } } JTicket[] ticketArray = new JTicket[list.Count]; for (int k = 0; k < ticketArray.Length; k++) { ticketArray[k] = (JTicket)list[k]; } return ticketArray; }
private JTicket[] ToElectronicTicket_HPJX_RX2(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { string[] strArray = this.AnalyseScheme_RX1(Number, PlayTypeID).Split(new char[] { '\n' }); ArrayList list = new ArrayList(); Money = 0.0; for (int i = 0; i < strArray.Length; i++) { string canonicalNumber = ""; string[] strArray2 = this.ToSingle_RX2(strArray[i], ref canonicalNumber); if (strArray2 == null) { return null; } if (strArray2.Length == 0) { return null; } int num2 = 0; if ((Multiple % MaxMultiple) != 0) { num2 = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1; } else { num2 = Multiple / MaxMultiple; } int multiple = 1; double num4 = 0.0; for (int k = 1; k < (num2 + 1); k++) { if ((k * MaxMultiple) < Multiple) { multiple = MaxMultiple; } else { multiple = Multiple - ((k - 1) * MaxMultiple); } for (int m = 0; m < strArray2.Length; m += 5) { string number = ""; num4 = 0.0; for (int n = 0; n < 5; n++) { if (((m + n) < strArray2.Length) && !string.IsNullOrEmpty(strArray2[m + n].ToString())) { number = number + strArray2[m + n].ToString(); num4 += 2.0; } } Money += num4 * multiple; list.Add(new JTicket(0x13c, this.ConvertFormatToElectronTicket_HPJX(PlayTypeID, number), multiple, num4 * multiple)); } } } JTicket[] ticketArray = new JTicket[list.Count]; for (int j = 0; j < ticketArray.Length; j++) { ticketArray[j] = (JTicket)list[j]; } return ticketArray; }
private JTicket[] ToElectronicTicket_HPSD_ZuQ3(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { string[] strArray = this.AnalyseScheme_ZuQ3(Number, PlayTypeID).Split(new char[] { '\n' }); if (strArray == null) { return null; } if (strArray.Length == 0) { return null; } Money = 0.0; int num = 0; if ((Multiple % MaxMultiple) != 0) { num = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1; } else { num = Multiple / MaxMultiple; } ArrayList list = new ArrayList(); int multiple = 1; double num3 = 0.0; for (int i = 1; i < (num + 1); i++) { if ((i * MaxMultiple) < Multiple) { multiple = MaxMultiple; } else { multiple = Multiple - ((i - 1) * MaxMultiple); } string number = ""; num3 = 0.0; string str2 = ""; double num5 = 0.0; int num6 = 0; for (int k = 0; k < strArray.Length; k++) { if (strArray[k].ToString().Split(new char[] { '|' }).Length >= 2) { if (double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]) == 1.0) { number = number + strArray[k].ToString().Split(new char[] { '|' })[0] + "\n"; num3 += 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]); num6++; if ((num6 == 5) || (k == (strArray.Length - 1))) { Money += num3 * multiple; list.Add(new JTicket(12, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num3 * multiple)); number = ""; num3 = 0.0; num6 = 0; } } else { str2 = strArray[k].ToString().Split(new char[] { '|' })[0] + "\n"; num5 = 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]); Money += num5 * multiple; list.Add(new JTicket(12, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, str2), multiple, num5 * multiple)); } } } if (number != "") { Money += num3 * multiple; list.Add(new JTicket(12, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num3 * multiple)); } } JTicket[] ticketArray = new JTicket[list.Count]; for (int j = 0; j < ticketArray.Length; j++) { ticketArray[j] = (JTicket)list[j]; } return ticketArray; }
private JTicket[] ToElectronicTicket_HPSD_Zhi_F(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { string[] strArray = this.AnalyseScheme(Number, PlayTypeID).Split(new char[] { '\n' }); if (strArray == null) { return null; } if (strArray.Length == 0) { return null; } string canonicalNumber = ""; ArrayList list = new ArrayList(); if (PlayTypeID == 0x189e) { for (int k = 0; k < strArray.Length; k++) { string[] strArray2 = this.ToSingle_3(strArray[k].Split(new char[] { '|' })[0], ref canonicalNumber); for (int m = 0; m < strArray2.Length; m++) { list.Add(strArray2[m]); } } } if (PlayTypeID == 0x18a2) { for (int n = 0; n < strArray.Length; n++) { string[] strArray3 = this.ToSingle_ZhiH(strArray[n].Split(new char[] { '|' })[0], ref canonicalNumber); for (int num4 = 0; num4 < strArray3.Length; num4++) { list.Add(strArray3[num4]); } } } ArrayList list2 = new ArrayList(); Money = 0.0; int num5 = 0; if ((Multiple % MaxMultiple) != 0) { num5 = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1; } else { num5 = Multiple / MaxMultiple; } int multiple = 1; double num7 = 0.0; for (int i = 1; i < (num5 + 1); i++) { if ((i * MaxMultiple) < Multiple) { multiple = MaxMultiple; } else { multiple = Multiple - ((i - 1) * MaxMultiple); } for (int num9 = 0; num9 < list.Count; num9 += 5) { string number = ""; num7 = 0.0; for (int num10 = 0; num10 < 5; num10++) { if (((num9 + num10) < list.Count) && (list[num9 + num10].ToString().Length >= 2)) { number = number + list[num9 + num10].ToString() + "\n"; num7 = 2 * (num10 + 1); } } Money += num7 * multiple; list2.Add(new JTicket(0xc9, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num7 * multiple)); } } JTicket[] ticketArray = new JTicket[list2.Count]; for (int j = 0; j < ticketArray.Length; j++) { ticketArray[j] = (JTicket)list2[j]; } return ticketArray; }
private JTicket[] ToElectronicTicket_HPSD_2_F(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money) { string[] strArray = this.AnalyseScheme(Number, PlayTypeID).Split(new char[] { '\n' }); if (strArray == null) { return null; } if (strArray.Length == 0) { return null; } Money = 0.0; int num = 0; if ((Multiple % MaxMultiple) != 0) { num = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1; } else { num = Multiple / MaxMultiple; } ArrayList list = new ArrayList(); int multiple = 1; double num3 = 0.0; for (int i = 1; i < (num + 1); i++) { if ((i * MaxMultiple) < Multiple) { multiple = MaxMultiple; } else { multiple = Multiple - ((i - 1) * MaxMultiple); } for (int k = 0; k < strArray.Length; k++) { string number = ""; num3 = 0.0; ArrayList list2 = new ArrayList(); string[] strArray2 = strArray[k].Split(new char[] { ' ' }); int length = strArray2.Length; for (int m = 0; m < (length - 1); m++) { for (int num8 = m + 1; num8 < length; num8++) { list2.Add(strArray2[m] + " " + strArray2[num8]); } } for (int n = 0; n < list2.Count; n++) { number = number + list2[n].ToString().Split(new char[] { '|' })[0] + "\n"; num3 = 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]); } Money += num3 * multiple; list.Add(new JTicket(0x69, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num3 * multiple)); } } JTicket[] ticketArray = new JTicket[list.Count]; for (int j = 0; j < ticketArray.Length; j++) { ticketArray[j] = (JTicket)list[j]; } return ticketArray; }