using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace Mesnac.Controls.Base
{
///
/// 开关状态枚举
///
public enum OnOffStatuses
{
Off = 0, On = 1
}
public class StringListConverterParent : TypeConverter
{
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
return true; // display drop
}
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
{
return true; // drop-down vs combo
}
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
List list = new List();
foreach (Component cmpnt in context.Container.Components)
{
list.Add(cmpnt.Site.Name);
}
return new TypeConverter.StandardValuesCollection(list);
}
}
///
/// 设计时功能操作信息
///
[Serializable]
public class DesignAction
{
///
/// 保存的唯一值
///
[DefaultValue("")]
public string GUID { get; set; }
///
/// 显示的名称
///
[DefaultValue("")]
public string Name { get; set; }
///
/// 说明
///
[DefaultValue("")]
public string Remark { get; set; }
}
}