public void populateWarpList() { for (short index = 0; index < (short)288; ++index) { WarpLocation warpLocation = new WarpLocation((int)index); if (warpLocation.name != "") { this.everyWarp.Add(warpLocation); this.warps_lb.Items.Add((object)warpLocation.name); } } }
private void button1_Click(object sender, EventArgs e) { this.warp = this.everyWarp[this.warps_lb.SelectedIndices[0]]; this.Close(); }