昨晚由于时间的原因只写了一部分内容,今天将这一部分内容补充完毕,多谢各位园友的支持。

这是用C#开发的双色球走势图(原创)值得园友拥有 新的园友可以看昨晚写的内容,以免脱节。首先回复园友的评论,有说好的有说不好的,本人不管你说好还是不好,根本不影响个人写这篇博客,写这篇博客主要目的还是与大家交流技术,仅供交流和学习,本人花在这上面的时间的大楷也就是一个星期的晚上时间(星期一到星期五晚上)和周末(周六周日)的时间而已,并没有花费更多的时间;关于公布源码的问题,本人会在稍后公布,由于现在我的源码集成在我的一个项目里,所以不方便公布,一旦我把这个模块分离出来,会公布源码以供大家交流和学习,希各位继续支持和关注。还有就是这个程序纯粹个人好玩,不能预测开奖号码,不过这些分析数据可以供大家购买彩票之前的参考,我觉得还可以。

以上为题外话,现在言归正传,继续介绍红球四分区走势图。

3.红球四分区走势图

首先呈上效果图:

不带遗漏数据的走势图:

贴上四分区走势图的源码:

       #region * 红球四分区走势图
/// <summary>
/// 红球四分区走势图
/// </summary>
/// <param name="obj"></param>
private void GetData3(object obj)
{
fourredtable.Clear();
fourcleanredtable.Clear();
if (listWinNo != null && listWinNo.Count > )
{
foreach (WinNo item in listWinNo)
{
List<int> redList = new List<int>();
redList.Add(item.R1);
redList.Add(item.R2);
redList.Add(item.R3);
redList.Add(item.R4);
redList.Add(item.R5);
redList.Add(item.R6);
//--
DataRow reddr =fourredtable.NewRow();
reddr["QiHao"] = item.QiHao;
reddr["R" + item.R1] = "R" + GetStr(item.R1.ToString());//红1
reddr["R" + item.R2] = "R" + GetStr(item.R2.ToString());//红2
reddr["R" + item.R3] = "R" + GetStr(item.R3.ToString());//红3
reddr["R" + item.R4] = "R" + GetStr(item.R4.ToString());//红4
reddr["R" + item.R5] = "R" + GetStr(item.R5.ToString());//红5
reddr["R" + item.R6] = "R" + GetStr(item.R6.ToString());//红6
reddr["C1"] = GetFourFenQu(redList)[];
reddr["C2"] = GetFourFenQu(redList)[];
reddr["C3"] = GetFourFenQu(redList)[];
reddr["C4"] = GetFourFenQu(redList)[];
fourredtable.Rows.Add(reddr); DataRow cleanreddr =fourcleanredtable.NewRow();
cleanreddr["QiHao"] = item.QiHao;
cleanreddr["R" + item.R1] = GetStr(item.R1.ToString());//红1
cleanreddr["R" + item.R2] = GetStr(item.R2.ToString());//红2
cleanreddr["R" + item.R3] = GetStr(item.R3.ToString());//红3
cleanreddr["R" + item.R4] = GetStr(item.R4.ToString());//红4
cleanreddr["R" + item.R5] = GetStr(item.R5.ToString());//红5
cleanreddr["R" + item.R6] = GetStr(item.R6.ToString());//红6
cleanreddr["C1"] = GetFourFenQu(redList)[];
cleanreddr["C2"] = GetFourFenQu(redList)[];
cleanreddr["C3"] = GetFourFenQu(redList)[];
cleanreddr["C4"] = GetFourFenQu(redList)[];
fourcleanredtable.Rows.Add(cleanreddr);
} for (int j = ; j < ; j++)
{
int xint = ;
for (int i = ; i < fourredtable.Rows.Count; i++)
{
if (string.IsNullOrEmpty(fourredtable.Rows[i]["R" + j].ToString()))
{
xint++;
fourredtable.Rows[i]["R" + j] = xint;
}
else
{
xint = ;
}
}
} if (this.IsHandleCreated)
{
this.Invoke((MethodInvoker)delegate
{
if (flag)
{
fourcleanredtable.DefaultView.Sort = "QiHao DESC";
this.gridControl3.DataSource = fourcleanredtable.DefaultView.ToTable();
}
else
{
fourredtable.DefaultView.Sort = "QiHao DESC";
this.gridControl3.DataSource = fourredtable.DefaultView.ToTable();
}
});
}
}
} /// <summary>
/// 四分区个数
/// </summary>
/// <param name="redList"></param>
/// <returns></returns>
private List<string> GetFourFenQu(List<int> redList)
{
List<string> retlist = new List<string>();
int xint1 = ;
int xint2 = ;
int xint3 = ;
int xint4 = ;
foreach (int item in redList)
{
if (item < )
{
xint1++;
}
else if (item > && item <= )
{
xint2++;
}
else if (item > && item < )
{
xint3++;
}
else if (item > )
{
xint4++;
}
}
retlist.Add(xint1.ToString());
retlist.Add(xint2.ToString());
retlist.Add(xint3.ToString());
retlist.Add(xint4.ToString());
return retlist;
}
#endregion

4.红球七分区走势图

七分区走势图效果图:

不带遗漏数据的走势图:

贴上七分区走势图的源码:

    #region * 红球七分区走势图
/// <summary>
/// 红球七分区走势图
/// </summary>
/// <param name="obj"></param>
private void GetData4(object obj)
{
sevenredtable.Clear();
sevencleanredtable.Clear();
if (listWinNo != null && listWinNo.Count > )
{
foreach (WinNo item in listWinNo)
{
List<int> redList = new List<int>();
redList.Add(item.R1);
redList.Add(item.R2);
redList.Add(item.R3);
redList.Add(item.R4);
redList.Add(item.R5);
redList.Add(item.R6);
//--
DataRow reddr = sevenredtable.NewRow();
reddr["QiHao"] = item.QiHao;
reddr["R" + item.R1] = "R" + GetStr(item.R1.ToString());//红1
reddr["R" + item.R2] = "R" + GetStr(item.R2.ToString());//红2
reddr["R" + item.R3] = "R" + GetStr(item.R3.ToString());//红3
reddr["R" + item.R4] = "R" + GetStr(item.R4.ToString());//红4
reddr["R" + item.R5] = "R" + GetStr(item.R5.ToString());//红5
reddr["R" + item.R6] = "R" + GetStr(item.R6.ToString());//红6
reddr["D1"] = GetSevenFenQu(redList)[];
reddr["D2"] = GetSevenFenQu(redList)[];
reddr["D3"] = GetSevenFenQu(redList)[];
reddr["D4"] = GetSevenFenQu(redList)[];
reddr["D5"] = GetSevenFenQu(redList)[];
reddr["D6"] = GetSevenFenQu(redList)[];
reddr["D7"] = GetSevenFenQu(redList)[];
sevenredtable.Rows.Add(reddr); DataRow cleanreddr = sevencleanredtable.NewRow();
cleanreddr["QiHao"] = item.QiHao;
cleanreddr["R" + item.R1] = GetStr(item.R1.ToString());//红1
cleanreddr["R" + item.R2] = GetStr(item.R2.ToString());//红2
cleanreddr["R" + item.R3] = GetStr(item.R3.ToString());//红3
cleanreddr["R" + item.R4] = GetStr(item.R4.ToString());//红4
cleanreddr["R" + item.R5] = GetStr(item.R5.ToString());//红5
cleanreddr["R" + item.R6] = GetStr(item.R6.ToString());//红6
cleanreddr["D1"] = GetSevenFenQu(redList)[];
cleanreddr["D2"] = GetSevenFenQu(redList)[];
cleanreddr["D3"] = GetSevenFenQu(redList)[];
cleanreddr["D4"] = GetSevenFenQu(redList)[];
cleanreddr["D5"] = GetSevenFenQu(redList)[];
cleanreddr["D6"] = GetSevenFenQu(redList)[];
cleanreddr["D7"] = GetSevenFenQu(redList)[];
sevencleanredtable.Rows.Add(cleanreddr);
} for (int j = ; j <; j++)
{
int xint = ;
for (int i = ; i < sevenredtable.Rows.Count; i++)
{
if (string.IsNullOrEmpty(sevenredtable.Rows[i]["R" + j].ToString()))
{
xint++;
sevenredtable.Rows[i]["R" + j] = xint;
}
else
{
xint = ;
}
}
} if (this.IsHandleCreated)
{
this.Invoke((MethodInvoker)delegate
{
if (flag)
{
sevencleanredtable.DefaultView.Sort = "QiHao DESC";
this.gridControl4.DataSource = sevencleanredtable.DefaultView.ToTable();
}
else
{
sevenredtable.DefaultView.Sort = "QiHao DESC";
this.gridControl4.DataSource = sevenredtable.DefaultView.ToTable();
}
});
}
}
} private List<string> GetSevenFenQu(List<int> redList)
{
List<string> retlist = new List<string>();
int xint1 = ;
int xint2 = ;
int xint3 = ;
int xint4 = ;
int xint5 = ;
int xint6 = ;
int xint7 = ;
foreach (int item in redList)
{
if (item < )
{
xint1++;
}
else if (item > && item < )
{
xint2++;
}
else if (item > && item < )
{
xint3++;
}
else if (item > && item < )
{
xint4++;
}
else if (item > && item < )
{
xint5++;
}
else if (item > && item < )
{
xint6++;
}
else if (item > && item < )
{
xint7++;
}
}
retlist.Add(xint1.ToString());
retlist.Add(xint2.ToString());
retlist.Add(xint3.ToString());
retlist.Add(xint4.ToString());
retlist.Add(xint5.ToString());
retlist.Add(xint6.ToString());
retlist.Add(xint7.ToString());
return retlist;
}
#endregion

5.红球连号走势图

连号走势图效果图:

不带遗漏数据的效果图:

贴上连号走势图的源码:

     #region * 红球连号走势图
/// <summary>
/// 红球连号走势图
/// </summary>
/// <param name="obj"></param>
private void GetData6(object obj)
{
lianhaotable.Clear();
lianhaocleantable.Clear();
if (listWinNo != null && listWinNo.Count > )
{
foreach (WinNo item in listWinNo)
{
List<int> redList = new List<int>();
redList.Add(item.R1);
redList.Add(item.R2);
redList.Add(item.R3);
redList.Add(item.R4);
redList.Add(item.R5);
redList.Add(item.R6);
//--
DataRow reddr = lianhaotable.NewRow();
DataRow cleanreddr = lianhaocleantable.NewRow();
reddr["QiHao"] = item.QiHao;
cleanreddr["QiHao"] = item.QiHao;
reddr["R"] = GetStr(item.R1.ToString()) + " " + GetStr(item.R2.ToString()) + " " + GetStr(item.R3.ToString()) + " " + GetStr(item.R4.ToString()) + " " + GetStr(item.R5.ToString()) + " " + GetStr(item.R6.ToString());
cleanreddr["R"] = GetStr(item.R1.ToString()) + " " + GetStr(item.R2.ToString()) + " " + GetStr(item.R3.ToString()) + " " + GetStr(item.R4.ToString()) + " " + GetStr(item.R5.ToString()) + " " + GetStr(item.R6.ToString());
//--
List<string> list = new List<string>();
list = GetList(redList);
int group = ;
if (list != null && list.Count > )
{
foreach (string strlist in list)
{
string[] arr = strlist.Split(",".ToCharArray());
group += arr.Count() - ;
foreach (string code in arr)
{
reddr["R" + code] = "R" + GetStr(code);
cleanreddr["R" + code] = GetStr(code);
}
}
}
reddr["A"] = list.Count();
cleanreddr["A"] = list.Count();
reddr["B"] = group.ToString();
cleanreddr["B"] = group.ToString();
//--
lianhaotable.Rows.Add(reddr);
lianhaocleantable.Rows.Add(cleanreddr);
} for (int j = ; j < ; j++)
{
int xint = ;
for (int i = ; i < lianhaotable.Rows.Count; i++)
{
if (string.IsNullOrEmpty(lianhaotable.Rows[i]["R" + j].ToString()))
{
xint++;
lianhaotable.Rows[i]["R" + j] = xint;
}
else
{
xint = ;
}
}
} if (this.IsHandleCreated)
{
this.Invoke((MethodInvoker)delegate
{
if (flag)
{
lianhaocleantable.DefaultView.Sort = "QiHao DESC";
this.gridControl6.DataSource = lianhaocleantable.DefaultView.ToTable();
}
else
{
lianhaotable.DefaultView.Sort = "QiHao DESC";
this.gridControl6.DataSource = lianhaotable.DefaultView.ToTable();
}
});
}
}
} /// <summary>
/// 计算连号
/// </summary>
/// <param name="RedCode"></param>
/// <returns></returns>
private List<string> GetList(List<int> RedCode)
{
List<string> retlist = new List<string>();
for (int i = ; i < RedCode.Count; i++)
{
string retstr = string.Empty;
if (i < )
{
if (RedCode[i + ] - RedCode[i] == )//两连号
{
retstr = RedCode[i] + "," + RedCode[i + ];
}
}
if (i < )
{
if (RedCode[i + ] - RedCode[i + ] == && RedCode[i + ] - RedCode[i] == )//三连号
{
retstr = RedCode[i] + "," + RedCode[i + ] + "," + RedCode[i + ];
}
}
if (i < )
{
if (RedCode[i + ] - RedCode[i + ] == && RedCode[i + ] - RedCode[i + ] == && RedCode[i + ] - RedCode[i] == )//四连号
{
retstr = RedCode[i] + "," + RedCode[i + ] + "," + RedCode[i + ] + "," + RedCode[i + ];
}
}
if (i < )
{
if (RedCode[i + ] - RedCode[i + ] == && RedCode[i + ] - RedCode[i + ] == && RedCode[i + ] - RedCode[i + ] == && RedCode[i + ] - RedCode[i] == )//五连号
{
retstr = RedCode[i] + "," + RedCode[i + ] + "," + RedCode[i + ] + "," + RedCode[i + ] + "," + RedCode[i + ];
}
}
if (!string.IsNullOrEmpty(retstr))
{
if (retlist != null && retlist.Count > )
{
var tmp = from c in retlist
where ("," + c + ",").Contains("," + retstr + ",")
select c;
if (tmp.Count() == )
{
retlist.Add(retstr);
}
}
else
{
retlist.Add(retstr);
}
}
}
return retlist;
}
#endregion

6.和值走势图

和值走势图效果图:

不带遗漏数据的效果图:

贴上和值走势图的源码:

      #region * 红球和值走势图
/// <summary>
/// 红球和值走势图
/// </summary>
/// <param name="obj"></param>
private void GetData7(object obj)
{
hezhitable.Clear();
hezhicleantable.Clear();
if (listWinNo != null && listWinNo.Count > )
{
foreach (WinNo item in listWinNo)
{
DataRow reddr = hezhitable.NewRow();
DataRow cleanreddr = hezhicleantable.NewRow();
reddr["QiHao"] = item.QiHao;
cleanreddr["QiHao"] = item.QiHao;
reddr["R"] = GetStr(item.R1.ToString()) + " " + GetStr(item.R2.ToString()) + " " + GetStr(item.R3.ToString()) + " " + GetStr(item.R4.ToString()) + " " + GetStr(item.R5.ToString()) + " " + GetStr(item.R6.ToString());
cleanreddr["R"] = GetStr(item.R1.ToString()) + " " + GetStr(item.R2.ToString()) + " " + GetStr(item.R3.ToString()) + " " + GetStr(item.R4.ToString()) + " " + GetStr(item.R5.ToString()) + " " + GetStr(item.R6.ToString());
decimal total = item.R1 + item.R2 + item.R3 + item.R4 + item.R5 + item.R6;
reddr["TOTAL"] = total;
cleanreddr["TOTAL"] = total;
//--
string r1 = total > && total < ? total.ToString() : "";
string r2 = total > && total < ? total.ToString() : "";
string r3 = total > && total < ? total.ToString() : "";
string r4 = total > && total < ? total.ToString() : "";
string r5 = total > && total < ? total.ToString() : "";
string r6 = total > && total < ? total.ToString() : "";
string r7 = total > && total < ? total.ToString() : "";
string r8 = total > && total < ? total.ToString() : "";
string r9 = total > && total < ? total.ToString() : "";
string r10 = total > && total < ? total.ToString() : "";
string r11 = total > && total < ? total.ToString() : "";
string r12 = total > && total < ? total.ToString() : "";
string w = total.ToString().Substring(total.ToString().Length - , );
//--
reddr["R1"] = !string.IsNullOrEmpty(r1) ? "R" + r1 : "";
reddr["R2"] = !string.IsNullOrEmpty(r2) ? "R" + r2 : "";
reddr["R3"] = !string.IsNullOrEmpty(r3) ? "R" + r3 : "";
reddr["R4"] = !string.IsNullOrEmpty(r4) ? "R" + r4 : "";
reddr["R5"] = !string.IsNullOrEmpty(r5) ? "R" + r5 : "";
reddr["R6"] = !string.IsNullOrEmpty(r6) ? "R" + r6 : "";
reddr["R7"] = !string.IsNullOrEmpty(r7) ? "R" + r7 : "";
reddr["R8"] = !string.IsNullOrEmpty(r8) ? "R" + r8 : "";
reddr["R9"] = !string.IsNullOrEmpty(r9) ? "R" + r9 : "";
reddr["R10"] = !string.IsNullOrEmpty(r10) ? "R" + r10 : "";
reddr["R11"] = !string.IsNullOrEmpty(r11) ? "R" + r11 : "";
reddr["R12"] = !string.IsNullOrEmpty(r12) ? "R" + r12 : "";
reddr["W"] = w;
reddr["W"+w] ="W"+ w;
//--
cleanreddr["R1"] = r1;
cleanreddr["R2"] = r2;
cleanreddr["R3"] = r3;
cleanreddr["R4"] = r4;
cleanreddr["R5"] = r5;
cleanreddr["R6"] = r6;
cleanreddr["R7"] = r7;
cleanreddr["R8"] = r8;
cleanreddr["R9"] = r9;
cleanreddr["R10"] = r10;
cleanreddr["R11"] = r11;
cleanreddr["R12"] = r12;
cleanreddr["W"] = w;
cleanreddr["W" + w] = w;
//--
hezhitable.Rows.Add(reddr);
hezhicleantable.Rows.Add(cleanreddr);
} for (int j = ; j < ; j++)
{
int xint = ;
for (int i = ; i < hezhitable.Rows.Count; i++)
{
if (string.IsNullOrEmpty(hezhitable.Rows[i]["R" + j].ToString()))
{
xint++;
hezhitable.Rows[i]["R" + j] = xint;
}
else
{
xint = ;
}
}
} for (int j = ; j < ; j++)
{
int xint = ;
for (int i = ; i < hezhitable.Rows.Count; i++)
{
if (string.IsNullOrEmpty(hezhitable.Rows[i]["W" + j].ToString()))
{
xint++;
hezhitable.Rows[i]["W" + j] = xint;
}
else
{
xint = ;
}
}
} if (this.IsHandleCreated)
{
this.Invoke((MethodInvoker)delegate
{
if (flag)
{
hezhicleantable.DefaultView.Sort = "QiHao DESC";
this.gridControl7.DataSource = hezhicleantable.DefaultView.ToTable();
}
else
{
hezhitable.DefaultView.Sort = "QiHao DESC";
this.gridControl7.DataSource = hezhitable.DefaultView.ToTable();
}
});
}
}
}
#endregion

7.篮球综合走势图

篮球综合走势图效果图:

不带遗漏数据的效果图:

贴上篮球综合走势图的源码:

        #region * 篮球综合走势图
/// <summary>
/// 篮球综合走势图
/// </summary>
/// <param name="obj"></param>
private void GetData5(object obj)
{
buletable.Clear();
bulecleantable.Clear();
if (listWinNo != null && listWinNo.Count > )
{
foreach (WinNo item in listWinNo)
{
DataRow buledr = buletable.NewRow();
buledr["QiHao"] = item.QiHao;
buledr["R"] = GetStr(item.R1.ToString()) + " " + GetStr(item.R2.ToString()) + " " + GetStr(item.R3.ToString()) + " " + GetStr(item.R4.ToString()) + " " + GetStr(item.R5.ToString()) + " " + GetStr(item.R6.ToString());
buledr["B"] = GetStr(item.B.ToString());
buledr["B" + item.B] = "B" + GetStr(item.B.ToString());//篮球
buledr["X1"] = GetDa(item.B);//大
buledr["X2"] = GetXiao(item.B);//小
buledr["X3"] = GetJiShu(item.B);//奇
buledr["X4"] = GetOShu(item.B);//偶
buledr["X5"] = GetZhiShu(item.B);//质
buledr["X6"] = GetHeShu(item.B);//合
buledr["X7"] = GetFenQu1(item.B);//一区
buledr["X8"] = GetFenQu2(item.B);//二区
buledr["X9"] = GetFenQu3(item.B);//三区
buledr["X10"] = GetFenQu4(item.B);//四区
buledr["X11"] = GetWeiShu(item.B);//尾数
buledr["X12"] = GetWeiShuQuJian(item.B, );//0-1
buledr["X13"] = GetWeiShuQuJian(item.B, );//2-3
buledr["X14"] = GetWeiShuQuJian(item.B, );//4-5
buledr["X15"] = GetWeiShuQuJian(item.B, );//6-7
buledr["X16"] = GetWeiShuQuJian(item.B, );//8-9
buletable.Rows.Add(buledr);
//--
DataRow bulecleandr =bulecleantable.NewRow();
bulecleandr["QiHao"] = item.QiHao;
bulecleandr["R"] = GetStr(item.R1.ToString()) + " " + GetStr(item.R2.ToString()) + " " + GetStr(item.R3.ToString()) + " " + GetStr(item.R4.ToString()) + " " + GetStr(item.R5.ToString()) + " " + GetStr(item.R6.ToString());
bulecleandr["B"] = GetStr(item.B.ToString());
bulecleandr["B" + item.B] = GetStr(item.B.ToString());//篮球
bulecleandr["X1"] = GetDa(item.B);//大
bulecleandr["X2"] = GetXiao(item.B);//小
bulecleandr["X3"] = GetJiShu(item.B);//奇
bulecleandr["X4"] = GetOShu(item.B);//偶
bulecleandr["X5"] = GetZhiShu(item.B);//质
bulecleandr["X6"] = GetHeShu(item.B);//合
bulecleandr["X7"] = GetFenQu1(item.B);//一区
bulecleandr["X8"] = GetFenQu2(item.B);//二区
bulecleandr["X9"] = GetFenQu3(item.B);//三区
bulecleandr["X10"] = GetFenQu4(item.B);//四区
bulecleandr["X11"] = GetWeiShu(item.B);//尾数
bulecleandr["X12"] = GetWeiShuQuJian(item.B, );//0-1
bulecleandr["X13"] = GetWeiShuQuJian(item.B, );//2-3
bulecleandr["X14"] = GetWeiShuQuJian(item.B, );//4-5
bulecleandr["X15"] = GetWeiShuQuJian(item.B, );//6-7
bulecleandr["X16"] = GetWeiShuQuJian(item.B, );//8-9
bulecleantable.Rows.Add(bulecleandr);
} for (int j = ; j < ; j++)
{
int xint = ;
for (int i = ; i < buletable.Rows.Count; i++)
{
if (string.IsNullOrEmpty(buletable.Rows[i]["B" + j].ToString()))
{
xint++;
buletable.Rows[i]["B" + j] = xint;
}
else
{
xint = ;
}
}
} for (int j = ; j < ; j++)
{
int xint = ;
for (int i = ; i < buletable.Rows.Count; i++)
{
if (string.IsNullOrEmpty(buletable.Rows[i]["X"+j].ToString()))
{
xint++;
buletable.Rows[i]["X" + j] = xint;
}
else
{
xint = ;
}
}
} if (this.IsHandleCreated)
{
this.Invoke((MethodInvoker)delegate
{
if (flag)
{
bulecleantable.DefaultView.Sort = "QiHao DESC";
this.gridControl5.DataSource = bulecleantable.DefaultView.ToTable();
}
else
{
buletable.DefaultView.Sort = "QiHao DESC";
this.gridControl5.DataSource = buletable.DefaultView.ToTable();
}
});
}
}
} /// <summary>
/// 大数
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetDa(int BuleCode)
{
if (BuleCode > )
{
return "大";
}
else
{
return "";
}
} /// <summary>
/// 小数
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetXiao(int BuleCode)
{
if (BuleCode < )
{
return "小";
}
else
{
return "";
}
} /// <summary>
/// 奇数
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetJiShu(int BuleCode)
{
if (BuleCode % != )
{
return "奇";
}
else
{
return "";
}
} /// <summary>
/// 偶数
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetOShu(int BuleCode)
{
if (BuleCode % == )
{
return "偶";
}
else
{
return "";
}
} /// <summary>
/// 质数
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetZhiShu(int BuleCode)
{
if (BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == )
{
return "质";
}
else
{
return "";
}
} /// <summary>
/// 合数
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetHeShu(int BuleCode)
{
if (BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == || BuleCode == )
{
return "合";
}
else
{
return "";
}
} /// <summary>
/// 分区1
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetFenQu1(int BuleCode)
{
if (BuleCode < )
{
return "X"+BuleCode.ToString();
}
else
{
return "";
}
} /// <summary>
/// 分区2
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetFenQu2(int BuleCode)
{
if (BuleCode > && BuleCode < )
{
return "X"+BuleCode.ToString();
}
else
{
return "";
}
} /// <summary>
/// 分区3
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetFenQu3(int BuleCode)
{
if (BuleCode > && BuleCode < )
{
return "X"+BuleCode.ToString();
}
else
{
return "";
}
} /// <summary>
/// 分区4
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetFenQu4(int BuleCode)
{
if (BuleCode > )
{
return "X"+BuleCode.ToString();
}
else
{
return "";
}
} /// <summary>
/// 尾数
/// </summary>
/// <param name="BuleCode"></param>
/// <returns></returns>
private string GetWeiShu(int BuleCode)
{
if (BuleCode < )
{
return BuleCode.ToString();
}
else
{
return BuleCode.ToString().Substring(, );
}
} private string GetWeiShuQuJian(int BuleCode, int xint)
{
string weishu = GetWeiShu(BuleCode);
if (int.Parse(weishu) >= + xint && int.Parse(weishu) <= + xint)
{
return "Y" + weishu;
}
else
{
return "";
}
}
#endregion

篮球走势图是最复杂的,也是本人花费最多时间的,望园友多关注。

8.历史同期

历史同期走势图效果图:

历史数据全部是用网上抓取的,在这里就不多介绍了。

以上基本上把本人这段时间研究的这点东西全部公布了,仅供各位参考和交流,如有兴趣可加QQ群(186841119)一起交流学习C#的心得,个人的源码会在这个群空间里上传,提高技术水平,为将来加薪打下良好的基础,祝愿各位都有一个好运气,500W的大奖会降临在你头上。

用C#开发的双色球走势图(原创)值得园友拥有(二)接上一篇的更多相关文章

  1. 用C#开发的双色球走势图(原创)值得园友拥有

    首先声明,个人纯粹无聊之作,不作商业用途. 我相信每个人都拥有一个梦想那就是有朝一日能中500W,这个也一直是我的梦想,并默默每一期双色球或多或少要贡献自己一点点力量,本人并不属于那种铁杆的彩票迷,每 ...

  2. 用C#开发的双色球走势图(二)

    昨晚由于时间的原因只写了一部分内容,今天将这一部分内容补充完毕,多谢各位园友的支持. 这是用C#开发的双色球走势图(一)新的园友可以看昨晚写的内容,以免脱节.首先回复园友的评论,有说好的有说不好的,本 ...

  3. 用C#开发的双色球走势图(一)

    首先声明,个人纯粹无聊之作,不作商业用途. 我相信每个人都拥有一个梦想那就是有朝一日能中500W,这个也一直是我的梦想,并默默每一期双色球或多或少要贡献自己一点点力量,本人并不属于那种铁杆的彩票迷,每 ...

  4. 一款强大的双色球走势图,助你500W梦想,js+mvc+html

    序言 估计每个人都有中500W的梦想,我关注双色球也有一定年数了,可最多中也只有10块钱,这已经算是最大的奖,最近闲来无事,研究下怎么去开发双色球的走势图,觉得还是蛮有意思的,用MVC+JS+HTMl ...

  5. APP开发项目思维导图

    APP开发项目思维导图 下载思维导图:APP开发项目.xmind.zip --------------------------------------- APP开发项目 app项目标记: 未启动 功能 ...

  6. C#调用OpenCV开发简易版美图工具

    前言 在C#调用OpenCV其实非常简单,因为C#中有很多OPenCV的开源类库. 本文主要介绍在WPF项目中使用OpenCVSharp3-AnyCPU开源类库处理图片,下面我们先来做开发前的准备工作 ...

  7. WPF Devexpress 控件库中ChartControl 实现股票分时走势图

    概要 从事金融行业开发 ,会接触些图表控件,这里我分享一下自己基于DevExpress.Charts.v16.2开发的股票分时走势图的经验. 附上源码:点击跳转 如果需要讨论,Q群:580749909 ...

  8. 【转】使用Python matplotlib绘制股票走势图

    转载出处 一.前言 matplotlib[1]是著名的python绘图库,它提供了一整套绘图API,十分适合交互式绘图.本人在工作过程中涉及到股票数据的处理如绘制K线等,因此将matplotlib的使 ...

  9. CozyRSS开发记录1-原型图与Grid

    CozyRSS开发记录1-原型图与Grid 1.使用MockPlus画出最简陋的原型图 这个界面参考了目前我最常使用的RSS阅读-傲游浏览器的内置RSS阅读器.主体框架划分为上.左下.右下三块,分别是 ...

随机推荐

  1. 为什么JAVA要提供 wait/notify 机制?是为了避免轮询带来的性能损失

    wait/notify  机制是为了避免轮询带来的性能损失. 为了说清道理,我们用“图书馆借书”这个经典例子来作解释. 一本书同时只能借给一个人.现在有一本书,图书馆已经把这本书借了张三. 在简单的s ...

  2. springmvc DispatchServlet初始化九大加载策略(一)

    由于篇幅较长,因此分三篇进行讲解: springmvc DispatchServlet初始化九大加载策略(一) springmvc DispatchServlet初始化九大加载策略(二) spring ...

  3. django的数据库操作回顾

    补充一个filter中大于小于的用法 models.course_info.objects.filter(id__gte=30).delete() _exact 精确等于 like 'aaa' __i ...

  4. php Pthread 多线程 (一) 基本介绍

    我们可以通过安装Pthread扩展来让PHP支持多线程.   线程,有时称为轻量级进程,是程序执行的最小单元.线程是进程中的一个实体,是被系统独立调度和分派的基本单位,线程自己不拥有系统资源,它与同属 ...

  5. firebug chrome debug[z]

    http://www.cnblogs.com/rubylouvre/p/3613042.html

  6. sql优化常用命令总结

    1.显示执行计划的详细步骤 SET SHOWPLAN_ALL ON; SET SHOWPLAN_ALL OFF; 2. 显示执行语句的IO成本,时间成本 SET STATISTICS IO ON SE ...

  7. 操作系统——MiniDos

    #include <stdio.h> #include <string.h> #include <windows.h> ],token[],ch,sa[]; ]={ ...

  8. DICOM

    DICOM(Digital Imaging and Communications in Medicine)即医学数字成像和通信,是医学图像和相关信息的国际标准(ISO 12052).它定义了质量能满足 ...

  9. 关于多系统跨浏览器 BrowserStack 的使用

    偶然在Scott Hanselman Blogs看到一篇关于 BrowserStack 博文,对于前端多浏览器测试. 现在拥有各自内核的浏览器越来越多,各自的特性也千差万别.如果作为一个前端攻城师想要 ...

  10. 【JDBC&Dbutils】JDBC&JDBC连接池&DBUtils使用方法(重要)

    -----------------------JDBC---------- 0.      db.properties文件 driver=com.mysql.jdbc.Driver url=jdbc: ...