Example #1
0
 public CustomTagTemplate(string tag, string markup, OffsetItem thisOffset, RootElementMaster master)
     : this(tag)
 {
     this.MyRootMaster = master;
     MyOffset          = thisOffset;
     LoadTag(markup);
 }
Example #2
0
        public CustomTag CreateTagInstance(string tag, string markup, RootElementMaster rootMaster)
        {
            if (string.IsNullOrEmpty(tag))
            {
                throw new ArgumentNullException("Must specify tag");
            }

            if (!CustomTags.ContainsKey(tag))
            {
                return(null);
            }
            CustomTagTemplate template = CustomTags[tag];

            if (template != null)
            {
                if (template.MyRootMaster != rootMaster)
                {
                    template.MyRootMaster = rootMaster;
                    template.Parse();
                }
                else
                {
                    if (!template.IsParsed || template.Controls.Count == 0)
                    {
                        template.Parse();
                    }
                }
            }
            return(new CustomTag(tag, CustomTags[tag], markup));
        }
Example #3
0
 public CustomTagTemplate(string tag, string markup, RootElementMaster master)
     : this(tag)
 {
     this.MyRootMaster = master;
     LoadTag(markup);
 }
Example #4
0
 public GadgetErrors(RootElementMaster parent)
 {
     Parent = parent;
 }
Example #5
0
 public CustomTagFactory(RootElementMaster rootMaster)
     : this()
 {
     _myRootMaster = rootMaster;
 }