Ejemplo n.º 1
0
        void Handle_ItemTapped(object sender, Xamarin.Forms.ItemTappedEventArgs e)
        {
            TopicInfoLabel topicInfoLabel = e.Item as TopicInfoLabel;

            ((ListView)sender).SelectedItem = null;
            Navigation.PushAsync(new NewcomerProblemPage(topicInfoLabel));
        }
 public NewcomerProblemPage(TopicInfoLabel topicInfoLabel)
 {
     _currentnewcomerlabel = topicInfoLabel;
     InitializeComponent();
     ProfileIcon    = _currentnewcomerlabel.Icon;
     Name           = _currentnewcomerlabel.Name;
     Language       = _currentnewcomerlabel.Language;
     Des            = _currentnewcomerlabel.Description;
     TagType        = _currentnewcomerlabel.TagName;
     BindingContext = this;
 }
Ejemplo n.º 3
0
        private void TopicInfoConvertor(List <TopicInfo> list)
        {
            var th = new TagsHelper();

            foreach (TopicInfo tp in list)
            {
                var            user = uih.GetUserInfoByID(tp.UserID);
                TopicInfoLabel tmp  = new TopicInfoLabel
                {
                    TopicID     = tp.TopicID,
                    TagName     = th.GetTagNameByID(tp.TagID),
                    UserID      = tp.UserID,
                    Name        = user.FirstName + " " + user.LastName,
                    Icon        = user.Icon,
                    Zipcode     = tp.Zipcode,
                    Language    = tp.Language,
                    Description = tp.Description,
                    Status      = StatusTextConvertor(tp.Status)
                };
                topiclabellist.Add(tmp);
            }
        }