Files
wg_cpso/CPSO/Forms/11_MeshSetup/ViewMeshSetupItem.cs
2026-03-25 18:20:24 +08:00

36 lines
1.1 KiB
C#

using CaeMesh;
using DynamicTypeDescriptor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CPSO.Forms
{
public abstract class ViewMeshSetupItem
{
// Variables
protected DynamicCustomTypeDescriptor _dctd;
protected string _regionType;
// Variables
public abstract string Name { get; set; }
public abstract string RegionType { get; set; }
// Methods
public abstract MeshSetupItem GetBase();
public void InitializeRegion()
{
_regionType = "Selection";
_dctd.PopulateProperty(nameof(RegionType), new string[] { _regionType });
}
public void HideName()
{
_dctd.GetProperty(nameof(Name)).SetIsBrowsable(false);
}
}
}