public frmMain() { InitializeComponent(); map = new Map(); this.dropdownBGtype.SelectedIndex = 0; }
private void mnuFileOpen_Click(object sender, EventArgs e) { if (diaOpen.ShowDialog() == System.Windows.Forms.DialogResult.OK) { map = new Map(); map.Load(diaOpen.FileName); resetUI(); } }