private void openToolStripButton_Click(object sender, EventArgs e) { using (var mapDialog = new OpenMapDialog()) { if (mapDialog.ShowDialog(this) == DialogResult.Cancel) { return; } CalculateMap(Convert.ToUInt16(mapDialog.MapSeed), BaseRankTable[mapDialog.MapRank]); } saveToolStripButton.Enabled = false; }
private void openToolStripButton_Click(object sender, EventArgs e) { using (var mapDialog = new OpenMapDialog()) { if (mapDialog.ShowDialog(this) == DialogResult.Cancel) return; CalculateMap(Convert.ToUInt16(mapDialog.MapSeed), BaseRankTable[mapDialog.MapRank]); } saveToolStripButton.Enabled = false; }