public ProfileHistoryView(ContactListWrapper contactList) { var label = new Label { FontSize = 22, Text = AppResources.ProfileHistoryHeader, TextColor = AppResources.AgendaCongressoColor, XAlign = TextAlignment.Center, FontAttributes = FontAttributes.Bold, YAlign = TextAlignment.Center }; var listView = new ListView { ItemTemplate = new DataTemplate(typeof(ProfileHistoryItemCell)), SeparatorVisibility = SeparatorVisibility.None, BackgroundColor = Color.Transparent, ItemsSource = contactList, RowHeight = 80 }; Content = new StackLayout { VerticalOptions = LayoutOptions.FillAndExpand, Orientation = StackOrientation.Vertical, BackgroundColor = Color.White, Padding = new Thickness(0, 5, 0, 0), Children = { label, listView } }; }
private void ApplyUser(UserModel newUserModel) { CurrentUser = newUserModel; if (CurrentUser != null) { InitUserModel(CurrentUser); CurrentConnectionsWrapper = new ConnectionsDataWrapper(CurrentUser, UsersModelsWrapper); CurrentContactListWrapper = new ContactListWrapper(CurrentUser, CurrentConnectionsWrapper); } }
public void LogoutUser() { if (CurrentConnectionsWrapper != null) { CurrentConnectionsWrapper.ClearData(); } CurrentConnectionsWrapper = null; if (CurrentContactListWrapper != null) { CurrentContactListWrapper.ClearData(); } CurrentContactListWrapper = null; ChangeUser(null); }
internal static Types.PagedList <Contact> ToDomain(this ContactListWrapper value) { return(value?.Item.ToDomain()); }
internal static Types.PagedList <Contact> ToDomain(this ContactListWrapper value) { return(s_contactMapper.ApiToDomain(value)); }
public Types.PagedList <Contact> ApiToDomain(ContactListWrapper value) { return(ApiToDomain(value?.Item)); }