示例#1
0
        private void intializeControls(C4H_Webservice.CharityProfile Profile)
        {
            //Profile
            this.regnumber_label.Text = Profile.RegNumber;
            this.fullname_label.Text  = Profile.FullName;

            //Category
            this.type_label.Text        = Profile.Category.Name;
            this.description_label.Text = Profile.Category.Description;
            this.designation_label.Text = Profile.Designation.Description;

            //Contact Information
            this.email_label.Text   = Profile.Email;
            this.phone_label.Text   = Profile.Phone;
            this.website_label.Text = Profile.Website;

            //Address
            this.province_label.Text   = Profile.Province;
            this.city_label.Text       = Profile.City;
            this.address1_label.Text   = Profile.Address1;
            this.address2_label.Text   = Profile.Address2;
            this.postalcode_label.Text = Profile.PostalCode;

            //Check if followed
            if (FollowedCharities.CheckIfAddedToCart(Profile.UserID))
            {
                Follow_Button.IsEnabled = false;
                Follow_Button.Content   = "Followed";
            }
        }
示例#2
0
        private void items_listselector_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            C4H_Webservice.CharityProfile selectedItem = items_listselector.SelectedItem as C4H_Webservice.CharityProfile;
            if (selectedItem == null)
            {
                return;
            }

            SearchManager.curretnSearchItem = selectedItem;
            NavigationService.Navigate(new Uri("/Pages/Search/CharityProfilePage.xaml", UriKind.Relative));
        }
示例#3
0
        public static void AddToCart(C4H_Webservice.CharityProfile Item)
        {
            if (FollowedCharitiesList == null)
            {
                FollowedCharitiesList = new ObservableCollection <C4H_Webservice.CharityProfile>();
            }

            if (CheckIfAddedToCart(Item.UserID))
            {
                return;
            }

            FollowedCharitiesList.Add(Item);
            SaveLocalWatchListInformation();
        }