Пример #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
        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();
        }
Пример #3
0
 void client_SearchCharitiesByQueryCompleted(object sender, C4H_Webservice.SearchCharitiesByQueryCompletedEventArgs e)
 {
     if (e.Result == null) //Search done
     {
         setupSearchControls("An error occured while searching. Make sure you have internet connection.");
     }
     else //Error
     {
         SearchManager.SearchItems = e.Result;
         initializeSearchControls();
         NavigationService.Navigate(new Uri("/Pages/Search/SearchResults.xaml", UriKind.Relative));
     }
 }
Пример #4
0
 public UserServiceView(C4H_Webservice.Service Service, bool Added)
 {
     this.service = Service;
     this.Added = Added;
 }