Exemple #1
0
        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;
        }
Exemple #2
0
        //factory method
        public static BaseCompendiumPageElement CreateImageElement(XElement elementXml)
        {
            ImageElement elementToReturn = new ImageElement();

            try
            {
                elementToReturn.Deserialize(elementXml);
            }
            catch
            {
                elementToReturn = null;
            }

            return elementToReturn;
        }
Exemple #3
0
		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;
		}
Exemple #4
0
        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);
        }
Exemple #5
0
 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;
 }
Exemple #6
0
		public static BaseCompendiumPageElement CreateInstance()
		{
			var image = new ImageElement
			{
				GumpId = 1,
				X = 0,
				Y = 0,
				Hue = 0,
				Name = "new Image",
				ElementType = "ImageElement"
			};
			return image;
		}