private void btn_openVillage_Click(object sender, EventArgs e) { btn_newVillage_Click(this, e); OpenVillage ov = new OpenVillage(); vill = ov.getVill(); using (NationSelectorAfterOpenVill nsaov = new NationSelectorAfterOpenVill()) { if (nsaov.ShowDialog() == DialogResult.OK) { selected_nation = nsaov.selected_nation; } } vill.nation = selected_nation; if (selected_nation == "Arab Bedouins") { vill.rivers_drawn = null; } if (selected_nation == "Inuit Hunters") { vill.rivers_drawn = null; vill.trees_drawn = null; } setSavedVill(vill); }
private void btn_openVillage_Click(object sender, EventArgs e) { btn_newVillage_Click(this, e); OpenVillage ov = new OpenVillage(); vill = ov.getVill(); vill.nation = selected_nation; if (selected_nation == "Arab Bedouins") { vill.rivers_drawn = null; } if (selected_nation == "Inuit Hunters") { vill.rivers_drawn = null; vill.trees_drawn = null; } setSavedVill(vill); }