private async void InitializeFormat() { post = JsonConvert.DeserializeObject <BulletinPostObj>(Intent.GetStringExtra("PostObject")); commentlistview = FindViewById <ListView>(Resource.Id.BulletinCommentsListView); //find view for title tvTitle = FindViewById <TextView>(Resource.Id.textviewBulletinTitle); tvTitle.Text = post.Title; //find views for author and date author = FindViewById <TextView>(Resource.Id.textviewBulletinAuthor); author.Text = "Posted by: " + post.Author; date = FindViewById <TextView>(Resource.Id.textviewBulletinDate); date.Text = "Posted: " + post.Time; //find the two views for message body and comment listview message = FindViewById <TextView>(Resource.Id.textviewBulletinMessage); //find the add comment button bAddComment = FindViewById <Button>(Resource.Id.NewCommentButton); bAddComment.Click += BAddComment_Click; //set values for testing message.Text = post.Message; await UpdateComments(); message.Click += TextViewClick; commentlistview.ItemLongClick += Commentlistview_LongClick; }
public BulletinAddComment(BulletinPostObj bulletinPost) { //post object post = bulletinPost; }