private void buttonEditMap_Click(object sender, EventArgs e) { Definition.Map map = (Definition.Map) this.comboBoxSelectMap.SelectedValue; MapForm form = new MapForm(this.filepath, map); form.ShowDialog(); }
public MapForm(string gamePath, Definition.Map currentMap) { this.Path = gamePath; this.CurrentMap = currentMap; this.Text = Definition.MapNames[currentMap]; this.InitializeComponent(); this.PopulateComboBoxTileTypes(); this.SetupLayout(); this.SetupTilePalette(); }