public static int P_4QJ3_1(string LotteryNumber, string CheckNumber) { int num = 0; string[] array = LotteryNumber.Split(new char[] { ',' }); string[] array2 = CheckNumber.Split(new char[] { ',' }); if (array2.Length == 4 && array2[0].IndexOf(CheckSSC_QW.ReplaceStr(array[1])) != -1 && array2[1].IndexOf(array[2]) != -1 && array2[2].IndexOf(array[3]) != -1 && array2[3].IndexOf(array[4]) != -1) { num++; } return(num); }
public static int P_3QW2_1(string LotteryNumber, string CheckNumber, string Pos) { int num = 0; string[] array = LotteryNumber.Split(new char[] { ',' }); string[] array2 = CheckNumber.Split(new char[] { ',' }); if (Pos == "L" && array2.Length == 3 && array2[0].IndexOf(CheckSSC_QW.ReplaceDX(array[0])) != -1 && array2[1].IndexOf(array[1]) != -1 && array2[2].IndexOf(array[2]) != -1) { num++; } if (Pos == "R" && array2.Length == 3 && array2[0].IndexOf(CheckSSC_QW.ReplaceDX(array[2])) != -1 && array2[1].IndexOf(array[3]) != -1 && array2[2].IndexOf(array[4]) != -1) { num++; } return(num); }