private static void GenerateGroupTestingData()
        {
            for (int i = 0; i < 10; i++)
            {
                Group group = new Group();
                group.Id   = 1000 + i;
                group.Name = "My Group " + (i + 1).ToString();

                IList <Subgroup> subgroupList = new List <Subgroup>();

                for (int j = 0; j < 10; j++)
                {
                    Subgroup subgroup = new Subgroup();
                    subgroup.Id   = 1000 + j;
                    subgroup.Name = "[" + group.Name + "] - Subgroup " + (j + 1).ToString();

                    subgroupList.Add(subgroup);
                }

                group.Subgroups = subgroupList;

                groupDataSource.Add(new string[] { group.Id.ToString(), group.Name });

                groups.Add(group);
            }

            GroupDataSource = groupDataSource.ToArray();
        }
Example #2
0
        private static void GenerateGroupTestingData()
        {
            for (int i = 0; i < 10; i++)
            {
                Group group = new Group();
                group.Id = 1000 + i;
                group.Name = "My Group " + (i + 1).ToString();

                IList<Subgroup> subgroupList = new List<Subgroup>();

                for (int j = 0; j < 10; j++)
                {
                    Subgroup subgroup = new Subgroup();
                    subgroup.Id = 1000 + j;
                    subgroup.Name = "[" + group.Name + "] - Subgroup " + (j + 1).ToString();

                    subgroupList.Add(subgroup);
                }

                group.Subgroups = subgroupList;

                groupDataSource.Add(new string[] { group.Id.ToString(), group.Name });

                groups.Add(group);
            }

            GroupDataSource = groupDataSource.ToArray();
        }