Beispiel #1
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            AlphaAreaElement image = new AlphaAreaElement();

            image.X           = 0;
            image.Y           = 0;
            image.Width       = 100;
            image.Height      = 100;
            image.Name        = "new AlphaArea";
            image.ElementType = "AlphaAreaElement";
            return(image);
        }
        public override object Clone()
        {
            AlphaAreaElement image = new AlphaAreaElement();

            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.Width = this.Width;
            image.Height = this.Height;

            return image;
        }
Beispiel #3
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            var image = new AlphaAreaElement
            {
                X           = 0,
                Y           = 0,
                Width       = 100,
                Height      = 100,
                Name        = "new AlphaArea",
                ElementType = "AlphaAreaElement"
            };

            return(image);
        }
Beispiel #4
0
        public override object Clone()
        {
            AlphaAreaElement image = new AlphaAreaElement();

            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.Width       = this.Width;
            image.Height      = this.Height;

            return(image);
        }
        //factory method
        public static BaseCompendiumPageElement CreateAlphaAreaElement(XElement elementXml)
        {
            AlphaAreaElement elementToReturn = new AlphaAreaElement();

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

            return elementToReturn;
        }
Beispiel #6
0
		public override object Clone()
		{
			var image = new AlphaAreaElement
			{
				ElementType = ElementType.Clone() as string,
				Name = Name.Clone() as string,
				X = X,
				Y = Y,
				Z = Z,
				Width = Width,
				Height = Height
			};

			return image;
		}
Beispiel #7
0
        //factory method
        public static BaseCompendiumPageElement CreateAlphaAreaElement(XElement elementXml)
        {
            var elementToReturn = new AlphaAreaElement();

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

            return(elementToReturn);
        }
Beispiel #8
0
        public override object Clone()
        {
            var image = new AlphaAreaElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Width       = Width,
                Height      = Height
            };

            return(image);
        }
 public static BaseCompendiumPageElement CreateInstance()
 {
     AlphaAreaElement image = new AlphaAreaElement();
     image.X = 0;
     image.Y = 0;
     image.Width = 100;
     image.Height = 100;
     image.Name = "new AlphaArea";
     image.ElementType = "AlphaAreaElement";
     return image;
 }
Beispiel #10
0
		public static BaseCompendiumPageElement CreateInstance()
		{
			var image = new AlphaAreaElement
			{
				X = 0,
				Y = 0,
				Width = 100,
				Height = 100,
				Name = "new AlphaArea",
				ElementType = "AlphaAreaElement"
			};

			return image;
		}