Example #1
0
        public object Clone()
        {
            if (!this.IsParsed)
            {
                this.Parse();
            }
            GadgetMaster gm;

            if (MyOffset != null)
            {
                gm = new GadgetMaster(this.MyControlFactory, this.RawTag, MyOffset.Clone() as OffsetItem);
            }
            else
            {
                gm = new GadgetMaster(this.MyControlFactory, this.RawTag);
                gm.Parse();
            }

            if (gm.HasExternalMessageBundles())
            {
                gm.LoadConsolidatedMessageBundles(this.SerializationExternalMessageBundle);
            }
            if (gm.HasExternalTemplateLibraries())
            {
            }
            //todo - accomodate external templates
            return(gm);
        }
Example #2
0
        static public GadgetMaster CreateGadget(ControlFactory fact, string gadgetXml, OffsetItem offset)
        {
            GadgetMaster gadget = new GadgetMaster();

            gadget.MyControlFactory = fact;

            if (offset != null)
            {
                gadget.MyOffset = offset;
            }
//			if(System.Text.Encoding.GetEncoding(
            gadget.LoadTag(gadgetXml);

            return(gadget);
        }
Example #3
0
 public GadgetErrors(GadgetMaster parent)
 {
     Parent = parent;
 }