protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); //Haal items op try { lblLending.Text = "No items lending"; var id = Models.LoginCredentials.loginId; var Url = "http://www.good-lookz.com/API/lend/lendDownload.php?users_id={0}&active=1"; var Url_Full = string.Format(Url, id); var content = await _client.GetStringAsync(Url_Full); response = JsonConvert.DeserializeObject <List <Models.LendList> >(content); _gets = new ObservableCollection <Models.LendList>(response); lblLending.Text = ""; lendingList.ItemsSource = _gets; } catch { lblLending.Text = "No items lending"; } }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); try { string data = Models.LoginCredentials.loginId; string URL = string.Format(url, data); var content = await client.GetStringAsync(URL); var response = JsonConvert.DeserializeObject <List <Models.SaleList> >(content); _gets = new ObservableCollection <Models.SaleList>(response); sales.ItemsSource = _gets; } catch { await DisplayAlert("Message", "First time here? \nTry setting items for sale from your wardrobe to get started.", "OK"); await Application.Current.MainPage.Navigation.PopAsync(); } }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); emptySelectedClothing(); loadingHead.IsRunning = true; loadingTop.IsRunning = true; loadingBottom.IsRunning = true; loadingFeet.IsRunning = true; await getHeads(); await getTops(); await getBottoms(); await getFeet(); base.OnAppearing(); var hasHead = gets_Head.Count; var hasTop = gets_Top.Count; var hasBottom = gets_Bottom.Count; var hasFeet = gets_Feet.Count; if ((hasHead == 0) && (hasTop == 0) && (hasBottom == 0) && (hasFeet == 0)) { var _noItems = true; wardrobeItems.noItems = _noItems; await DisplayAlert("Hello!", "Looks like your wardrobe is empty.\n\nLet's start by adding some clothing. \n(the 'add' button will let you add clothes.)", "OK"); } }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); loadingList.IsVisible = true; loadingList.IsRunning = true; var values = new Dictionary <string, string> { { "users_id", users_id } }; var content = new FormUrlEncodedContent(values); var response = await _client.PostAsync(url, content); var responseString = await response.Content.ReadAsStringAsync(); postMethod = JsonConvert.DeserializeObject <List <Models.WardrobeSets> >(responseString); _posts = new ObservableCollection <Models.WardrobeSets>(postMethod); loadingList.IsRunning = false; loadingList.IsVisible = false; postsListView.ItemsSource = _posts; base.OnAppearing(); }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); try { string data = Models.LoginCredentials.loginId; string URL = string.Format(url, data); var content = await client.GetStringAsync(URL); response = JsonConvert.DeserializeObject <List <Models.SaleRequests> >(content); _gets = new ObservableCollection <Models.SaleRequests>(response); saleRequests.ItemsSource = _gets; } catch { lblRequests.Text = "No requests"; } }
protected override void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); fullNameLbl.Text = Models.SelectedFriendsCredentials.fullName; }
protected override void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); getInfo(); }
public WardrobeChoose() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); imageCareLoader.IsRunning = true; imageFashionLoader.IsRunning = true; imageAccessoriesLoader.IsRunning = true; imageForSellLoader.IsRunning = true; string shops1_id = Models.ShopsChosenSaved.shops1_id.ToString(); string url_Care = string.Format(url, shops1_id); var content_Care = await _client.GetStringAsync(url_Care); gets_Care = JsonConvert.DeserializeObject <List <Models.GetShops> >(content_Care); // ---------------------- // string shops2_id = Models.ShopsChosenSaved.shops2_id.ToString(); string url_Fashion = string.Format(url, shops2_id); var content_Fashion = await _client.GetStringAsync(url_Fashion); gets_Fashion = JsonConvert.DeserializeObject <List <Models.GetShops> >(content_Fashion); // ---------------------- // string shops3_id = Models.ShopsChosenSaved.shops3_id.ToString(); string url_Accessories = string.Format(url, shops3_id); var content_Accessories = await _client.GetStringAsync(url_Accessories); gets_Accessories = JsonConvert.DeserializeObject <List <Models.GetShops> >(content_Accessories); // ---------------------- // imageCare.Source = gets_Care[0].picture; imageCareLoader.IsRunning = false; imageFashion.Source = gets_Fashion[0].picture; imageFashionLoader.IsRunning = false; imageAccessories.Source = gets_Accessories[0].picture; imageAccessoriesLoader.IsRunning = false; imageForSell.Source = "fashion.png"; imageForSellLoader.IsRunning = false; imageCare.BindingContext = gets_Care[0].url; imageFashion.BindingContext = gets_Fashion[0].url; imageAccessories.BindingContext = gets_Accessories[0].url; lblCare.Text = gets_Care[0].name; lblFashion.Text = gets_Fashion[0].name; lblAccessories.Text = gets_Accessories[0].name; lblForSell.Text = "Used Clothes"; base.OnAppearing(); }
public EditNotifications() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); toggleSwitches(); }
public InYourColourPage() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); getFeelings(); }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); lblUsername.Text = Models.SelectedFriendsCredentials.username; lblDesc.Text = Models.SelectedFriendsCredentials.description; imPicture.Source = Models.SelectedFriendsCredentials.picture; }
public NotificationPage() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); getNotifs(); }
public EditAccount() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); getSettings(); }
public InYourColourWebview() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); wvWebView.Source = "http://www.inyourcolour.com"; }
public TOC() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); wvWeb.Source = "http://www.good-lookz.com/articles/terms-of-service.php"; }
public PP() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); wvWeb.Source = "http://www.good-lookz.com/articles/privacy-policy.php"; }
protected override void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); switch (typeCloth) { case 1: id = Int32.Parse(Models.SelectedHead.head_id); picture = Models.SelectedHead.picture; color = Models.SelectedHead.color; date = Models.SelectedHead.date; type = "head"; break; case 2: id = Int32.Parse(Models.SelectedTop.top_id); picture = Models.SelectedTop.picture; color = Models.SelectedTop.color; date = Models.SelectedTop.date; size = Models.SelectedTop.size; type = "top"; break; case 3: id = Int32.Parse(Models.SelectedBottom.bottom_id); picture = Models.SelectedBottom.picture; color = Models.SelectedBottom.color; date = Models.SelectedBottom.date; size = Models.SelectedBottom.size.ToString(); type = "bottom"; break; case 4: id = Int32.Parse(Models.SelectedFeet.feet_id); picture = Models.SelectedFeet.picture; color = Models.SelectedFeet.color; date = Models.SelectedFeet.date; size = Models.SelectedFeet.size.ToString(); type = "feet"; break; default: break; } selectedCloth.Source = picture; lblClothDate.Text = "Upload date: " + date; lblSize.Text = size; lblColor.Text = color; base.OnAppearing(); }
protected override void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); entryCity.Text = Models.SelectedSaleList.sale_city; entryPrice.Text = Models.SelectedSaleList.price; editorDesc.Text = Models.SelectedSaleList.desc; imageItem.Source = Models.SelectedSaleList.picture; }
public ChangeMail() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); //Vul de placeholder van de email entry getCurrentMail(); }
public Help() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); //Vul de list met settings getSettings(); }
protected override void OnAppearing() { //Haal permissie op voor de camera functie getPermission(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); btnAdjust.BackgroundColor = Color.Transparent; changeLightIntensitivity(Models.Settings.Mirror.adjust_lighting); }
protected override void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); getUserSize(); FillCarousel(); emptySelectedClothing(); base.OnAppearing(); }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); loadingFriends.IsVisible = true; loadingFriends.IsRunning = true; string url_notification = "http://www.good-lookz.com/API/notifications/friendsRequests.php?users_id={0}"; string data = Models.LoginCredentials.loginId; string URL_notification = string.Format(url_notification, data); var content_notification = await client.GetStringAsync(URL_notification); response_notification = JsonConvert.DeserializeObject <List <Models.FriendsRequestCount> >(content_notification); if (response_notification[0].count == 0) { requestsBtn.Text = "Friends Requests"; } else { var requestsBtnText = "Friends Requests({0})"; var data_requests = response_notification[0].count; requestsBtn.Text = string.Format(requestsBtnText, data_requests); } //string fastData = "41"; string URL = string.Format(url, data); var content = await client.GetStringAsync(URL); response = JsonConvert.DeserializeObject <List <Models.FriendsCredentials> >(content); response.Sort(new Models.friendsList(true, "Username")); loadingFriends.IsRunning = false; loadingFriends.IsVisible = false; if (response[0].id != null) { _gets = new ObservableCollection <Models.FriendsCredentials>(response); friendsList.ItemsSource = _gets; } else { lblRequests.Text = "No friends"; } }
public ChangeProfile() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); imPicture.Source = "http://good-lookz.com/img/default_pfp.jpg"; loadingPic.IsRunning = false; getProfile(); }
public WardrobeSaveSet() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); ImageHead.Source = Models.SelectedHead.picture; ImageTop.Source = Models.SelectedTop.picture; ImageBottom.Source = Models.SelectedBottom.picture; ImageFeet.Source = Models.SelectedFeet.picture; }
public ChangeInfo() { InitializeComponent(); //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); //Sla alle verschillende maten op in de list die boven is aangemaakt lstSizes = Models.Sizes.getAllSizesList(); //Haal gebruiker gegevens op en vul deze in getUserSize(); }
protected override void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); if (Models.PreviousPage.page == "wardrobe") { //Haal de types op vanuit de dbs voor in de picker getTypes(Models.LoginCredentials.loginId); } else { //CODE VOOR FRIENDS getFriendTypes(Models.LoginCredentials.loginId); } }
protected override async void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); //Haal region op await getUserSize(); //Check of de shops niet verwijdert zijn string care = await checkShop("1"); string fashion = await checkShop("2"); string accessories = await checkShop("3"); if (care == "false" || fashion == "false" || accessories == "false") { if (care == "false") { getShopMissing("1"); getShopsAsync("2"); getShopsAsync("3"); } else if (fashion == "false") { getShopsAsync("1"); getShopMissing("2"); getShopsAsync("3"); } else { getShopsAsync("1"); getShopsAsync("2"); getShopMissing("3"); } } else { //Haal shops op en stop ze in de carouselviews getShopsAsync("1"); getShopsAsync("2"); getShopsAsync("3"); } }
protected override void OnAppearing() { //Check of de gebruiker geblokkeerd is Models.Settings.Blocked blocked = new Models.Settings.Blocked(); blocked.checkBlockedAsync(); lbBidderUsername.Text = Models.SelectedSaleRequests.username; imageItem.Source = Models.SelectedSaleRequests.picture; lblPrice.Text = Models.SelectedSaleRequests.price; lblBidding.Text = Models.SelectedSaleRequests.bidding; lblComments.Text = Models.SelectedSaleRequests.comments; if (string.IsNullOrEmpty(lblBidding.Text)) { lblBidding.Text = "No bid"; } lblUsrname_buyer.Text = Models.SelectedSaleRequests.name; btnContact.Text = "Start communicating with " + Models.SelectedSaleRequests.username; }