コード例 #1
0
 public AutoCatYear( string name, string prefix = null, bool includeUnknown = true, string unknownText = null, AutoCatYear_Grouping groupMode = AutoCatYear_Grouping.None )
     : base( name ) {
     this.Prefix = prefix;
     this.IncludeUnknown = includeUnknown;
     this.UnknownText = unknownText;
     this.GroupingMode = groupMode;
 }
コード例 #2
0
 public AutoCatYear(string name, string filter = null, string prefix = null, bool includeUnknown = true, string unknownText = null, AutoCatYear_Grouping groupMode = AutoCatYear_Grouping.None, bool selected = false) : base(name)
 {
     Filter         = filter;
     Prefix         = prefix;
     IncludeUnknown = includeUnknown;
     UnknownText    = unknownText;
     GroupingMode   = groupMode;
     Selected       = selected;
 }
コード例 #3
0
 public AutoCatYear( string name, string filter = null, string prefix = null, bool includeUnknown = true, string unknownText = null, AutoCatYear_Grouping groupMode = AutoCatYear_Grouping.None, bool selected = false)
     : base( name ) {
     this.Filter = filter;
     this.Prefix = prefix;
     this.IncludeUnknown = includeUnknown;
     this.UnknownText = unknownText;
     this.GroupingMode = groupMode;
     this.Selected = selected;
 }
コード例 #4
0
        public static AutoCatYear LoadFromXmlElement(XmlElement xElement)
        {
            string name                    = XmlUtil.GetStringFromNode(xElement[XmlName_Name], TypeIdString);
            string prefix                  = XmlUtil.GetStringFromNode(xElement[XmlName_Prefix], null);
            bool   includeUnknown          = XmlUtil.GetBoolFromNode(xElement[XmlName_IncludeUnknown], true);
            string unknownText             = XmlUtil.GetStringFromNode(xElement[XmlName_UnknownText], null);
            AutoCatYear_Grouping groupMode = XmlUtil.GetEnumFromNode <AutoCatYear_Grouping>(xElement[XmlName_GroupingMode], AutoCatYear_Grouping.None);

            return(new AutoCatYear(name, prefix, includeUnknown, unknownText, groupMode));
        }
コード例 #5
0
 public AutoCatYear(string name, string prefix = null, bool includeUnknown = true, string unknownText = null, AutoCatYear_Grouping groupMode = AutoCatYear_Grouping.None)
     : base(name)
 {
     this.Prefix         = prefix;
     this.IncludeUnknown = includeUnknown;
     this.UnknownText    = unknownText;
     this.GroupingMode   = groupMode;
 }