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); }
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); }
public GadgetErrors(GadgetMaster parent) { Parent = parent; }