private void LoadMapsName() { STB sTB = ContentManager.Instance().GetSTB("3DDATA\\STB\\LIST_ZONE.STB"); STL sTL = ContentManager.Instance().GetSTL("3DDATA\\STB\\LIST_ZONE_S.STL"); this.UpdateStatus("Loading Maps Name", -1); this.SetProgressCount(sTL.entryCount); for (int i = 0; i < sTL.entryCount; i++) { MainForm.MapInfo item = new MainForm.MapInfo(sTL.entry[i].text[1], (int)sTL.entry[i].ID); this.listBoxMap.Items.Add(item); this.PerformStepProgress(); } this.ResetProgress(); }
private void listBoxMap_SelectedIndexChanged(object sender, EventArgs e) { MainForm.MapInfo mapInfo = (MainForm.MapInfo) this.listBoxMap.SelectedItem; this.LoadMap(mapInfo.id); }