ECS/frm/UCPosit.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ECS.frm
{
public partial class UCPosit : UserControl
{
public UCPosit()
{
InitializeComponent();
}
private int listNo = 0;
public int ListNo
{
get { return listNo; }
set
{
listNo = value;
flowLayoutPanel1.Controls.Clear();
//this.Size = new Size(15 * listNo, 25);
for (int i = 0; i < listNo; i++)
{
Button bt = new Button();
bt.FlatStyle = FlatStyle.Popup;
//bt.Image = Properties.Resources.List;
bt.BackColor = Color.MediumTurquoise;
bt.Size = new Size(20, 35);
//bt.Location = new Point(15 * i, 0);
bt.ForeColor = Color.Blue;
bt.Font=new Font("Airal", 5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
bt.Text = (i + 1).ToString();
bt.Margin = new Padding(0);
//bt.Enabled = false;
flowLayoutPanel1.Controls.Add(bt);
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。