public override object Clone() { ImageElement image = new ImageElement(); image.ElementType = this.ElementType.Clone() as string; image.Name = this.Name.Clone() as string; image.X = this.X; image.Y = this.Y; image.Z = this.Z; image.GumpId = this.GumpId; image.Hue = this.Hue; return image; }
//factory method public static BaseCompendiumPageElement CreateImageElement(XElement elementXml) { ImageElement elementToReturn = new ImageElement(); try { elementToReturn.Deserialize(elementXml); } catch { elementToReturn = null; } return elementToReturn; }
public override object Clone() { var image = new ImageElement { ElementType = ElementType.Clone() as string, Name = Name.Clone() as string, X = X, Y = Y, Z = Z, GumpId = GumpId, Hue = Hue }; return image; }
public override object Clone() { var image = new ImageElement { ElementType = ElementType.Clone() as string, Name = Name.Clone() as string, X = X, Y = Y, Z = Z, GumpId = GumpId, Hue = Hue }; return(image); }
public static BaseCompendiumPageElement CreateInstance() { ImageElement image = new ImageElement(); image.GumpId = 1; image.X = 0; image.Y = 0; image.Hue = 0; image.Name = "new Image"; image.ElementType = "ImageElement"; return image; }
public static BaseCompendiumPageElement CreateInstance() { var image = new ImageElement { GumpId = 1, X = 0, Y = 0, Hue = 0, Name = "new Image", ElementType = "ImageElement" }; return image; }