2
using System.Collections.Generic;
3
using System.ComponentModel;
7
using System.Windows.Forms;
10
namespace POGS_Windows_UI
12
public partial class ChoosePlayerDialog : Form
14
public ChoosePlayerDialog()
16
InitializeComponent();
19
public ChoosePlayerDialog(List<CharacterSlotInfo> l)
22
InitializeComponent();
23
foreach (CharacterSlotInfo s in l)
25
listBox1.Items.Add(string.Format(s.SlotNumber.ToString() + " " + s.Description));//populates the listbox with the character slot information
29
private void Ok_Click(object sender, EventArgs e)
31
ChoosePlayerDialog.observing1 = false;
32
ChoosePlayerDialog.player = listBox1.SelectedItem.ToString();
33
ChoosePlayerDialog.playerindex = listBox1.SelectedIndex;//get the selected slot index and store it
37
public static int playerindex;
41
private void ChoosePlayerDialog_Load(object sender, System.EventArgs e)
46
private void Cancel_Click(object sender, EventArgs e)
48
ChoosePlayerDialog.observing1 = false;
52
private void listBox1_SelectedIndexChanged_1(object sender, EventArgs e)
57
internal void ChoosePlayerdialog(List<CharacterSlotInfo> l, PlayerSlotChosenCallback cb)
59
InitializeComponent();
64
private void Observe_Click(object sender, EventArgs e)
66
ChoosePlayerDialog.observing1 = true;
71
public static bool observing1;
72
public static string player;
b'\\ No newline at end of file'