Exemplo n.º 1
0
        private void TileContextDuplicate_Click(object sender, EventArgs e)
        {
            if (MapView.SelectedTiles.Count != 1)
            {
                return;
            }

            TileData td = MapView.SelectedTiles[0];

            td          = td.Copy();
            td.ID       = Guid.NewGuid();
            td.Location = new Point(td.Location.X + 1, td.Location.Y + 1);

            fMap.Tiles.Add(td);

            MapView.MapChanged();
        }