Exemplo n.º 1
0
        public MapImage Add(string name)
        {
            MapImage mapImage = new MapImage();

            mapImage.Name = name;
            this.Add(mapImage);
            return(mapImage);
        }
Exemplo n.º 2
0
        protected override void OnInsertComplete(int index, object value)
        {
            base.OnInsertComplete(index, value);
            MapImage mapImage = (MapImage)value;

            if (mapImage.Position.DefaultValues && index != 0)
            {
                MapImage mapImage2 = this[index - 1];
                mapImage.Location.X = (float)(mapImage2.Location.X + 3.0);
                mapImage.Location.Y = (float)(mapImage2.Location.Y + 3.0);
            }
        }
Exemplo n.º 3
0
 public void Remove(MapImage value)
 {
     base.List.Remove(value);
 }
Exemplo n.º 4
0
 public int Add(MapImage value)
 {
     return(base.List.Add(value));
 }