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); } } }
private void resizeButton_Click(object sender, EventArgs e) { ResizeMap resmap = new ResizeMap(); resmap.ShowDialog(); }