public BanForm(AsyncChatClient client, ChatClientListWrapper bans) { this.client = client; this.bans = bans; InitializeComponent(); foreach (ChatClientWrapper ccw in bans.List) { listBox_bans.Items.Add(ccw.Name); } }
/// <summary> /// Banlist was received /// </summary> /// <param name="c"></param> void client_BanListEvent(ChatClientListWrapper c) { new BanForm(client, c).Show(); }
/// <summary> /// Client-List was received /// </summary> /// <param name="c"></param> void client_ClientListEvent(ChatClientListWrapper c) { listBox_clients.Items.Clear(); foreach (ChatClientWrapper ccw in c.List) { listBox_clients.Items.Add(ccw.Name); } Log("Clientlist-Update"); }