예제 #1
0
 public CustomTagTemplate(string tag, string markup, OffsetItem thisOffset, RootElementMaster master)
     : this(tag)
 {
     this.MyRootMaster = master;
     MyOffset          = thisOffset;
     LoadTag(markup);
 }
예제 #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));
        }
예제 #3
0
 public CustomTagTemplate(string tag, string markup, RootElementMaster master)
     : this(tag)
 {
     this.MyRootMaster = master;
     LoadTag(markup);
 }
예제 #4
0
 public GadgetErrors(RootElementMaster parent)
 {
     Parent = parent;
 }
예제 #5
0
 public CustomTagFactory(RootElementMaster rootMaster)
     : this()
 {
     _myRootMaster = rootMaster;
 }