Form1.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace Test
{
public partial class Form1 : Form
{
//盘子集合
private List<SheetModel> _lstDish;
//塔坐标
private int[,] _coordinates = new int[3, 2];
//动画线程
private Thread _threadAnimation;
//盘子个数
int _SheetCount = 5;
//动画速度 单位是毫秒
private int _AnimationSpeed = 200;
public Form1()
{
InitializeComponent();
this.DoubleBuffered = true;
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.UserPaint, true);
Init();
}
// 下载于www.51aspx.com
private void Init()
{
_lstDish = new List<SheetModel>();
_lstDish.Add(new SheetModel()
{
Pen = new Pen(Color.Black),
X = 75,
Y = 250,
LineWidth = 50
});
_lstDish.Add(new SheetModel()
{
Pen = new Pen(Color.Red),
X = 65,
Y = 260,
LineWidth = 70
});
_lstDish.Add(new SheetModel()
{
Pen = new Pen(Color.Green),
X = 55,
Y = 270,
LineWidth = 90
});
_lstDish.Add(new SheetModel()
后面还有 213 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。