You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Controls/Mesnac.Controls.ChemicalWei.../ReferenceAxisConverter.cs

26 lines
723 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mesnac.Controls.ChemicalWeighing
{
/// <summary>参考坐标轴的转换器</summary>
public class ReferenceAxisConverter : TypeConverter
{
/// <inheritdoc />
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext context,
object value,
Attribute[] attributes)
{
return TypeDescriptor.GetProperties(value, attributes);
}
/// <inheritdoc />
public override bool GetPropertiesSupported(ITypeDescriptorContext context) => true;
}
}