Beispiel #1
0
        protected void groups_lstBox_Init(object sender, EventArgs e)
        {
            var avialableGroups = ServerCommunication.GetGroups();

            groups_lstBox.Items.Clear();
            foreach (var group in avialableGroups)
            {
                groups_lstBox.Items.Add(group.m_name);
            }
        }
Beispiel #2
0
        //, System.Web.UI.WebControls.BulletedList AttendeeList
        public bool PopulateDisplayedGroupList(int groupNum)
        {
            List <Group> dummygroups = ServerCommunication.GetGroups();
            Group        dumbGroup   = dummygroups[groupNum];

            BulletedList1.Items.Clear();
            BulletedList2.Items.Clear();

            foreach (var attendee in dumbGroup.m_groupees)
            {
                ListItem li = new ListItem();
                //li.Value = "*.html";  //html goes here i.e.  xtab1.html
                li.Text = attendee.m_name;  //text name goes i.e. here tab1
                BulletedList1.Items.Add(li);
            }
            foreach (var group_event in dumbGroup.m_events)
            {
                ListItem li = new ListItem();
                li.Text = group_event.m_name;
                BulletedList2.Items.Add(li);
            }
            return(false);
        }