This commit is contained in:
parent
c48def9b46
commit
9a7cfe9b7f
@ -151,6 +151,15 @@ namespace VEPROMS.CSLA.Library
|
||||
return _Font == null? _Font = new VE_Font(base.XmlNode): _Font;
|
||||
}
|
||||
}
|
||||
private SymbolList _SymbolList;
|
||||
public SymbolList SymbolList
|
||||
{
|
||||
get
|
||||
{
|
||||
return (_SymbolList == null) ? _SymbolList = new SymbolList(SelectNodes("Symbols/Symbol")) : _SymbolList;
|
||||
}
|
||||
set { _SymbolList = value; }
|
||||
}
|
||||
private EditData _EditData;
|
||||
public EditData EditData
|
||||
{
|
||||
@ -211,6 +220,47 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Symbols
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class Symbol : vlnFormatItem
|
||||
{
|
||||
public Symbol(XmlNode xmlNode) : base(xmlNode) { }
|
||||
public Symbol() : base() { }
|
||||
[Category("Ints")]
|
||||
private LazyLoad<int?> _Unicode;
|
||||
public int? Unicode
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _Unicode, "@Unicode");
|
||||
}
|
||||
}
|
||||
[Category("Strings")]
|
||||
private LazyLoad<string> _Desc;
|
||||
public string Desc
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _Desc, "@Desc");
|
||||
}
|
||||
}
|
||||
public override string GetPDDisplayName()
|
||||
{ return Desc; }
|
||||
public override string GetPDDescription()
|
||||
{ return string.Format("Symbol Unicode '{0}' Description '{1}'", Unicode, Desc); }
|
||||
public override string GetPDCategory()
|
||||
{ return "Supported Symbols"; }
|
||||
public override string ToString()
|
||||
{
|
||||
return Desc;
|
||||
}
|
||||
}
|
||||
[TypeConverter(typeof(vlnListConverter<SymbolList, Symbol>))]
|
||||
public class SymbolList : vlnFormatList<Symbol>
|
||||
{
|
||||
public SymbolList(XmlNodeList xmlNodeList) : base(xmlNodeList) { }
|
||||
}
|
||||
#endregion
|
||||
#region EditData
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class EditData : vlnFormatItem
|
||||
|
Loading…
x
Reference in New Issue
Block a user