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

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

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

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

			return elementToReturn;
		}
Esempio 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;
        }
Esempio 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);
        }
Esempio 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;
		}
Esempio 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;
		}
Esempio 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;
 }