public static BaseCompendiumPageElement CreateInstance() { TiledImageElement image = new TiledImageElement(); image.GumpId = 1; image.X = 0; image.Y = 0; image.Width = 100; image.Height = 100; image.Name = "new TiledImage"; image.ElementType = "TiledImageElement"; return(image); }
public static BaseCompendiumPageElement CreateInstance() { var image = new TiledImageElement { GumpId = 1, X = 0, Y = 0, Width = 100, Height = 100, Name = "new TiledImage", ElementType = "TiledImageElement" }; return(image); }
//factory method public static BaseCompendiumPageElement CreateTiledImageElement(XElement elementXml) { var elementToReturn = new TiledImageElement(); try { elementToReturn.Deserialize(elementXml); } catch { elementToReturn = null; } return(elementToReturn); }
//factory method public static BaseCompendiumPageElement CreateTiledImageElement(XElement elementXml) { TiledImageElement elementToReturn = new TiledImageElement(); try { elementToReturn.Deserialize(elementXml); } catch { elementToReturn = null; } return elementToReturn; }
public override object Clone() { TiledImageElement image = new TiledImageElement(); 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.Width = this.Width; image.Height = this.Height; return image; }
public override object Clone() { TiledImageElement image = new TiledImageElement(); 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.Width = this.Width; image.Height = this.Height; return(image); }
public override object Clone() { var image = new TiledImageElement { ElementType = ElementType.Clone() as string, Name = Name.Clone() as string, X = X, Y = Y, Z = Z, GumpId = GumpId, Width = Width, Height = Height }; return(image); }
public override object Clone() { var image = new TiledImageElement { ElementType = ElementType.Clone() as string, Name = Name.Clone() as string, X = X, Y = Y, Z = Z, GumpId = GumpId, Width = Width, Height = Height }; return image; }
public static BaseCompendiumPageElement CreateInstance() { TiledImageElement image = new TiledImageElement(); image.GumpId = 1; image.X = 0; image.Y = 0; image.Width = 100; image.Height = 100; image.Name = "new TiledImage"; image.ElementType = "TiledImageElement"; return image; }
public static BaseCompendiumPageElement CreateInstance() { var image = new TiledImageElement { GumpId = 1, X = 0, Y = 0, Width = 100, Height = 100, Name = "new TiledImage", ElementType = "TiledImageElement" }; return image; }