110,539
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DXApplication5.entity
{
[Category("AR-PACKAGE"), TypeConverter(typeof(PackageConverter))]
public class Package
{
private string short_name;
private string category;
private List<TestBluePrintSet> testBluePrintSet;
public Package() { }
public Package(string short_name,string category)
{
this.category = category;
this.short_name = short_name;
}
[Category("AR-PACKAGE")]
public string Short_name
{
get
{
return short_name;
}
set
{
short_name = value;
}
}
[Category("info"), Browsable(false)]
public List<TestBluePrintSet> TestBluePrintSet
{
get
{
return testBluePrintSet;
}
set
{
testBluePrintSet = value;
}
}
[DisplayName("TestBluePrintSet"),Category("info")]
public TestBluePrintSet[] TestBluePrintSet1
{
get
{
if (testBluePrintSet == null)
{
testBluePrintSet = new List<TestBluePrintSet>();
//return testBluePrintSet.ToArray();
}
/*
else
{
return testBluePrintSet.ToArray();
}*/
return testBluePrintSet.ToArray();
}
set
{
testBluePrintSet.Clear();
testBluePrintSet.AddRange(value);
//testBluePrintSet = value;
}
}
[Category("info")]
public string Category
{
get
{
return category;
}
set
{
category = value;
}
}
}
}
我的类结构大约这样,我想问下怎样修改可以改变上图1,2,3红框中的名字