private void OpenBattle(string path) { if (!File.Exists(path)) { return; } Battle battle = null; try { battle = BTBLoader.Load(path); } catch (Exception ex) { ShowError(ex.ToString()); return; } DisableRedraw(); _battle = battle; _drawData.Clear(); _region_groupBox.Enabled = true; _obstacle_groupBox.Enabled = true; _object_groupBox.Enabled = true; _current_textBox.Text = path; _background = null; FindAndLoadBackground(Path.GetDirectoryName(path)); SetHighlightedRegion(null); SetSelectedRegion(null); ResetTransform(); FillTree(); EnableRedraw(); Redraw(); _save_button.Enabled = true; }