private void generateToolStripMenuItem_Click(object sender, EventArgs e) { GenHeightMap ghm = new GenHeightMap(); if (ghm.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; CurrentMap = ghm.Map; CurrentMap.OnPointAdded += HeightMapUpdated; toolStripButtonStart.Enabled = false; HeightMapUpdated(); }
private void generateToolStripMenuItem_Click(object sender, EventArgs e) { GenHeightMap ghm = new GenHeightMap(); if (ghm.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } CurrentMap = ghm.Map; CurrentMap.OnPointAdded += HeightMapUpdated; toolStripButtonStart.Enabled = false; HeightMapUpdated(); }