Beispiel #1
0
 private void resizeMapToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (document != null)
     {
         ResizeMap dlg = new ResizeMap(document.Size, document.TileSize);
         if (DialogResult.OK == dlg.ShowDialog())
         {
             document.Resize(dlg.MapSize, dlg.Offset, dlg.TileSize);
         }
     }
 }
Beispiel #2
0
        private void resizeButton_Click(object sender, EventArgs e)
        {
            ResizeMap resmap = new ResizeMap();

            resmap.ShowDialog();
        }