|
@@ -8,6 +8,7 @@ using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using System.Windows.Forms;
|
|
|
+using static DevExpress.Diagram.Core.Native.Either;
|
|
|
|
|
|
namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
|
|
|
{
|
|
@@ -30,6 +31,12 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
|
|
|
private void ParticleClassificationSelect_Load(object sender, EventArgs e)
|
|
|
{
|
|
|
DataTable table = Particledata.GetClassificationOfAllParticles();
|
|
|
+ //for (int i = 0; i < 30; i++)
|
|
|
+ //{
|
|
|
+ // DataRow row = table.NewRow();
|
|
|
+ // row["TypeName"] = "aa" + i.ToString();
|
|
|
+ // table.Rows.Add(row);
|
|
|
+ //}
|
|
|
if (table != null)
|
|
|
{
|
|
|
if (table.Rows.Count > 0)
|
|
@@ -39,14 +46,17 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
|
|
|
flowLayoutPanel.WrapContents = true;
|
|
|
flowLayoutPanel.Dock = DockStyle.Fill;
|
|
|
flowLayoutPanel.AutoScroll = true;
|
|
|
- flowLayoutPanel.Padding = new Padding(15);
|
|
|
+ flowLayoutPanel.Padding = new Padding(20, 10, 20, 25);
|
|
|
panel1.Controls.Add(flowLayoutPanel);
|
|
|
foreach (DataRow it in table.Rows)
|
|
|
{
|
|
|
// 添加控件到 FlowLayoutPanel 中
|
|
|
CheckBox box1 = new CheckBox();
|
|
|
box1.Text = it["TypeName"].ToString();
|
|
|
- box1.Width = flowLayoutPanel.Width-30;
|
|
|
+ box1.Width = flowLayoutPanel.Width-40;
|
|
|
+ box1.Height = 25;
|
|
|
+ Font font= new Font("宋体", 15, FontStyle.Regular);
|
|
|
+ box1.Font = font;
|
|
|
if (ParticleClassificationSelectedList != null)
|
|
|
{
|
|
|
if (ParticleClassificationSelectedList.Contains(box1.Text))
|