Exemple #1
0
        public async void populateProfileFields(user u)
        {
            List <item> items = await App.MANAGER.YSSI.GetItemsAssociatedWithUser(u.id);

            int[] fblastatus = await App.MANAGER.YSSI.GetChapterInfoOfUser(u.id);

            if (fblastatus[0] != -1)
            {
                fblaChapter f = await App.MANAGER.YSSI.GetFBLAChapter(fblastatus[0]);

                lblTitle.Text = Constants.DecodeFBLAStatus(fblastatus[1]) + "\n" + f.school + " FBLA";
            }


            listView.ItemsSource = items;
            if (u != null)
            {
                lblName.Text  = u.name;
                Title         = u.name;
                lblStats.Text = "Donated Items: " + items.Count.ToString();
                try
                {
                    profImg.Source = ImageSource.FromUri(new Uri(u.pic_url));
                }
                catch (Exception e)
                {
                    System.Diagnostics.Debug.WriteLine("Error: Unable to display profile image!\n{0}\n{1}", e.Message, e.StackTrace);
                }
            }

            Content = basestack;
        }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="v">The list view you want to display</param>
 /// <param name="fbla_id">ID of the Fbla group</param>
 /// <param name="code">The Code that corresponds with the function you want to preform</param>
 /// <param name="title">The title for the page</param>
 public fblaChapterItemsPage(fblaChapter fbla)
 {
     this.fbla = fbla;
     view      = new itemListView();
     Content   = new ActivityIndicator()
     {
         IsRunning = true
     };
     Title = "Items for sale by " + fbla.school;
 }
Exemple #3
0
        public fblaChapterWCF convertToWCF(fblaChapter f)
        {
            fblaChapterWCF fbla = new fblaChapterWCF();

            fbla.id            = f.id;
            fbla.name          = f.name;
            fbla.state         = f.state;
            fbla.city          = f.city;
            fbla.school        = f.school;
            fbla.contact_email = f.contact_email;
            fbla.payment_email = f.payment_email;
            fbla.picture       = f.picture;


            return(fbla);
        }
 protected async override void OnAppearing()
 {
     fbla = await App.MANAGER.YSSI.GetFBLAChapter(item.chapter_id);
 }