登录 注册
当前位置:主页 > 资源下载 > 9 > Chinese_Chess.7z下载

Chinese_Chess.7z下载

  • 更新:2024-08-24 20:29:56
  • 大小:1.47MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:C# - 后端
  • 格式: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; }