protected virtual void Parse(XElement XSec) { Name = XmlLinq.GetAttribute(XSec, "name"); IsHidden = new DefaultBool(XmlLinq.GetAttribute(XSec, "hidden")); IsReadOnly = new DefaultBool(XmlLinq.GetAttribute(XSec, "readOnly")); }
public DefaultBool(DefaultBoolType Value) { value = Value; }
public static bool Convert(DefaultBoolType Value, bool DefaultAsTrue) { return Value == DefaultBoolType.True || (Value == DefaultBoolType.Default && DefaultAsTrue)? true : false; }
public static bool Convert(DefaultBoolType Value) { return Convert(Value, true); }