-
Chinese_Chess.7z下载
资源介绍
private void InitChess(string chess_name, int row, int column, Bitmap bm, Player player, ChessClass type)
{
PictureBox chess_object = new PictureBox();
chess_object.BackColor = System.Drawing.Color.Transparent;
chess_object.BackgroundImage = bm;
chess_object.Location = new System.Drawing.Point(column * 57, row * 57);
chess_object.SizeMode = PictureBoxSizeMode.Normal;
chess_object.Name = chess_name;
chess_object.Size = new System.Drawing.Size(54, 54);
chess_object.Cursor = Cursors.Hand;
pictureBox1.Controls.Add(chess_object);
Chess c = new Chess(chess_name, player, type, chess_object);
ChessLocation[row, column] = c;
chess_object.Click += ChessSelect;
}