Exemple #1
0
        private void createANewZoneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (NewZoneDialog dlg = new NewZoneDialog())
            {
                DialogResult result;

                result = dlg.ShowDialog();
                if (result != DialogResult.OK)
                {
                    return;
                }

                NewZoneData newZoneData = dlg.NewZoneData;

                Multiverse.Lib.WorldMap.Image tmpheightmap = dlg.Heightmap;

                imageGrid.BeginDrag(new Size(newZoneData.TilesWidth, newZoneData.TilesHeight), new ImageGridDragFinished(NewZonePlacementCallback), newZoneData);
            }
        }
        private void createANewZoneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (NewZoneDialog dlg = new NewZoneDialog())
            {
                DialogResult result;

                result = dlg.ShowDialog();
                if (result != DialogResult.OK)
                {
                    return;
                }

                NewZoneData newZoneData = dlg.NewZoneData;

                Multiverse.Lib.WorldMap.Image tmpheightmap = dlg.Heightmap;

                imageGrid.BeginDrag(new Size(newZoneData.TilesWidth, newZoneData.TilesHeight), new ImageGridDragFinished(NewZonePlacementCallback), newZoneData);
            }
        }