private void SomeoneJoin(string userId) { NCskinListBox.Invoke(new Action <string>(ar => { NCskinListBox.Items.Add(new CCWin.SkinControl.SkinListBoxItem(ar)); }), userId); }
private void SomeoneExit(string userId) { NCskinListBox.Invoke(new Action <string>(ar => { for (int index = 0; index < NCskinListBox.Items.Count; index++) { if (NCskinListBox.Items[index].Text == ar) { NCskinListBox.Items.Remove(NCskinListBox.Items[index]); break; } } }), userId); }