Example #1
0
        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);
            }
        }
Example #2
0
 /// <summary>
 /// Banlist was received
 /// </summary>
 /// <param name="c"></param>
 void client_BanListEvent(ChatClientListWrapper c)
 {
     new BanForm(client, c).Show();
 }
Example #3
0
 /// <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");
 }