Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.CurrentState.allSubForum = myConnection.WatchAllSubForum();
     listBox1.Items.Clear();
     //   List<SubForumInfo> SubForumList = myConnection.WatchAllSubForum();
     for (int i = 0; i < this.CurrentState.allSubForum.Count; i++)
     {
         listBox1.Items.Add(this.CurrentState.allSubForum.ElementAt(i).Name);
     }
 }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            List <SubForumInfo> SubForumList = myConnection.WatchAllSubForum();

            for (int i = 0; i < SubForumList.Count; i++)
            {
                listBox1.Items.Add(SubForumList.ElementAt(i).Name);
            }
        }