internal void Init() { if (uiMultiRoomTypes.ItemsSource == null) { if (this.UserRoleAuths == null || this.UserRoleAuths.Count(i => !i.SiteGroupId.HasValue) > 0) { DataServiceHelper.ListRoomTypeAsync(Globals.UserLogin.UserOrganisationId, null, false, SelectRoomTypesComplete); } else { int siteGroupId = this.UserRoleAuths.First(i => i.SiteGroupId.HasValue).SiteGroupId.Value; DataServiceHelper.ListRoomTypeAsync(Globals.UserLogin.UserOrganisationId, null, false, SelectRoomTypesComplete); } } else { RaiseInitCompleteEvent(); } }