Exemple #1
0
        public MapImage Add(string name)
        {
            MapImage mapImage = new MapImage();

            mapImage.Name = name;
            this.Add(mapImage);
            return(mapImage);
        }
Exemple #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);
            }
        }
Exemple #3
0
 public void Remove(MapImage value)
 {
     base.List.Remove(value);
 }
Exemple #4
0
 public int Add(MapImage value)
 {
     return(base.List.Add(value));
 }