private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { listBox2.ClearSelected(); if (listBox1.SelectedIndex >= 0) { this.CurrentState.myForum = this.CurrentState.allForum.ElementAt(this.listBox1.SelectedIndex); this.CurrentState.allMembers = myConnection.WatchAllMembers(this.CurrentState.myForum); for (int i = 0; i < this.CurrentState.allMembers.Count; i++) { listBox2.Items.Add(this.CurrentState.allMembers.ElementAt(i).fullname); } } }
private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { int Temp = listBox1.SelectedIndex; if (Temp >= 0) { this.CurrentState.currentSubForumInfo = this.CurrentState.allSubForum.ElementAt(Temp); this.CurrentState.allMembers = myConnection.WatchAllMembers(this.CurrentState.myForum); this.listBox3.Items.Clear(); for (int i = 0; i < CurrentState.allMembers.Count; i++) { listBox3.Items.Add(this.CurrentState.allMembers.ElementAt(i).fullname); } } }