Ejemplo n.º 1
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            BackgroundElement image = new BackgroundElement();

            image.GumpId      = 9200;
            image.X           = 0;
            image.Y           = 0;
            image.Width       = 100;
            image.Height      = 100;
            image.Name        = "new BackgroundImage";
            image.ElementType = "BackgroundElement";
            return(image);
        }
Ejemplo n.º 2
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            var image = new BackgroundElement
            {
                GumpId      = 9200,
                X           = 0,
                Y           = 0,
                Width       = 100,
                Height      = 100,
                Name        = "new BackgroundImage",
                ElementType = "BackgroundElement"
            };

            return(image);
        }
Ejemplo n.º 3
0
        //factory method
        public static BaseCompendiumPageElement CreateBackgroundElement(XElement elementXml)
        {
            var elementToReturn = new BackgroundElement();

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

            return(elementToReturn);
        }
Ejemplo n.º 4
0
        public override object Clone()
        {
            BackgroundElement image = new BackgroundElement();

            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);
        }
Ejemplo n.º 5
0
		//factory method
		public static BaseCompendiumPageElement CreateBackgroundElement(XElement elementXml)
		{
			var elementToReturn = new BackgroundElement();

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

			return elementToReturn;
		}
Ejemplo n.º 6
0
        public override object Clone()
        {
            BackgroundElement image = new BackgroundElement();

            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;
        }
Ejemplo n.º 7
0
        public override object Clone()
        {
            var image = new BackgroundElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpId      = GumpId,
                Width       = Width,
                Height      = Height
            };

            return(image);
        }
Ejemplo n.º 8
0
		public override object Clone()
		{
			var image = new BackgroundElement
			{
				ElementType = ElementType.Clone() as string,
				Name = Name.Clone() as string,
				X = X,
				Y = Y,
				Z = Z,
				GumpId = GumpId,
				Width = Width,
				Height = Height
			};

			return image;
		}
Ejemplo n.º 9
0
		public static BaseCompendiumPageElement CreateInstance()
		{
			var image = new BackgroundElement
			{
				GumpId = 9200,
				X = 0,
				Y = 0,
				Width = 100,
				Height = 100,
				Name = "new BackgroundImage",
				ElementType = "BackgroundElement"
			};
			return image;
		}
Ejemplo n.º 10
0
 public static BaseCompendiumPageElement CreateInstance()
 {
     BackgroundElement image = new BackgroundElement();
     image.GumpId = 9200;
     image.X = 0;
     image.Y = 0;
     image.Width = 100;
     image.Height = 100;
     image.Name = "new BackgroundImage";
     image.ElementType = "BackgroundElement";
     return image;
 }