資源簡介
中國象棋源碼(UCCI協議)

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Data;
using?System.Text;
using?System.Windows.Forms;
namespace?scch
{
????public?partial?class?board?:?UserControl
????{
????????public?board()
????????{
????????????InitializeComponent();
????????}
????????private?int?_border?=?20;
????????private?int?i?=?70;
????????public?int?geWidth?{?get?{?return?i;?}?set?{?i?=?value;?Invalidate();?}?}
????????//邊距
????????private?void?board_Paint(object?sender?PaintEventArgs?e)
????????{
????????????//橫線
????????????for?(int?h?=?0;?h?10;?h++)
????????????????e.Graphics.DrawLine(new?Pen(Brushes.Black?2)?new?Point(_border?h?*?i?+?_border)?new?Point(8?*?i?+?_border?h?*?i?+?_border));
???????????#region?邊框
????????????Pen?borderPen?=?new?Pen(Brushes.Black?2);
???????????//斜線
????????????e.Graphics.DrawLine(borderPen?new?Point(3?*?i?+?_border?_border)?new?Point(5?*?i?+?_border?2?*?i?+?_border));
????????????e.Graphics.DrawLine(borderPen?new?Point(5?*?i?+?_border?_border)?new?Point(3?*?i?+?_border?2?*?i?+?_border));
????????????e.Graphics.DrawLine(borderPen?new?Point(3?*?i?+?_border?7?*?i?+?_border)?new?Point(5?*?i?+?_border?9?*?i?+?_border));
????????????e.Graphics.DrawLine(borderPen?new?Point(5?*?i?+?_border?7?*?i?+?_border)?new?Point(3?*?i?+?_border?9?*?i?+?_border));
????????????e.Graphics.DrawLine(borderPen?new?Point(_border?_border)?new?Point(_border?9?*?i?+?_border));
????????????e.Graphics.DrawLine(borderPen?new?Point(8?*?i?+?_border?_border)?new?Point(8?*?i?+?_border?9?*?i?+?_border));
???????????#endregion
????????????//中間的豎線
????????????for?(int?v?=?1;?v?8;?v++)
????????????{
????????????????e.Graphics.DrawLine(new?Pen(Brushes.Black?2)?new?Point(v?*?i?+?_border?_border)?new?Point(v?*?i?+?_border?4?*?i?+?_border));
????????????????//for?(int?v?=?1;?v?8;?v++)
????????????????e.Graphics.DrawLine(new?Pen(Brushes.Black?2)?new?Point(v?*?i?+?_border?5?*?i?+?_border)?new?Point(v?*?i?+?_border?9?*?i?+?_border));
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1030??2016-07-03?16:44??cch\app.config
?????文件???????6443??2014-01-28?15:15??cch\back.jpg
?????文件??????26014??2014-01-28?15:28??cch\back1.bmp
?????文件?????624640??2014-01-20?09:08??cch\bin\Debug\chess.exe
?????文件????2423808??2009-12-18?14:53??cch\bin\Debug\cyclone.exe
?????文件????????421??2016-06-29?15:01??cch\bin\Debug\cyclone.ini
?????文件?????324096??2017-06-03?08:43??cch\bin\Debug\scch.exe
?????文件???????1030??2016-07-03?16:44??cch\bin\Debug\scch.exe.config
?????文件??????97792??2017-06-03?08:43??cch\bin\Debug\scch.pdb
?????文件??????14328??2017-06-03?08:36??cch\bin\Debug\scch.vshost.exe
?????文件???????1030??2016-07-03?16:44??cch\bin\Debug\scch.vshost.exe.config
?????文件????????490??2009-06-11?05:14??cch\bin\Debug\scch.vshost.exe.manifest
?????文件???????2180??2016-06-29?16:32??cch\board.cs
?????文件???????1474??2014-01-26?12:05??cch\board.Designer.cs
?????文件???????5814??2014-01-26?12:05??cch\board.resx
?????文件??????96648??2012-12-21?21:16??cch\BOOK.DAT
?????文件?????192297??2014-01-20?16:00??cch\broad.jpg
?????文件?????624640??2014-01-20?09:08??cch\chess.exe
?????文件???????5520??2016-06-30?12:04??cch\chessman.cs
?????文件???????2308??2016-06-29?15:23??cch\chessman.Designer.cs
?????文件???????6353??2014-01-21?09:25??cch\chessman.png
?????文件???????6205??2016-06-29?15:23??cch\chessman.resx
?????文件???????6497??2016-07-01?14:22??cch\Coordinates.cs
?????文件???????2105??2016-06-30?11:57??cch\Coordinates.Designer.cs
?????文件???????6205??2016-06-30?11:58??cch\Coordinates.resx
?????文件????2423808??2009-12-18?14:53??cch\cyclone.exe
?????文件????????421??2016-06-29?15:01??cch\cyclone.ini
?????文件??????88376??2007-11-28?15:33??cch\ELEEYE.EXE
?????文件??????16998??2014-02-01?20:50??cch\main.ico
?????文件??????76451??2017-04-23?19:17??cch\mainfrm.cs
............此處省略52個文件信息
- 上一篇:.net博客系統源碼
- 下一篇:c實現軟件系統監控.zip
評論
共有 條評論