public void GetAllSubgroups() { using (FixedAssetsWebService.SubgroupServiceClient Client = new FixedAssetsWebService.SubgroupServiceClient()) { Client.Open(); object[] list = Client.GetAllSubgroups(); foreach (Subgroup s in list) { subgroups.Add(s); } } }