/// <summary> /// Загрузка карт /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void LoadMapToolStripMenuItem_Click(object sender, EventArgs e) { if (demoThread != null) { demoThread.Suspend(); } presenter = new DataPresenter(this); MapListFrm form = new MapListFrm(); foreach (var row in presenter.GetNamesAllMaps()) { form.ListBox1.Items.Add(row.MapName); } form.ShowDialog(); string name = form.ListBox1.SelectedItem.ToString(); presenter.MapObj = presenter.LoadMapByName(name); presenter.ShowMap(); UpdateStat(); btn_Start.Enabled = true; btn_Stop.Enabled = false; }