private void CommentButtonPress() { var composer = new Composer(); composer.NewComment(this, () => { composer.DoWork(() => { var text = String.Empty; InvokeOnMainThread(delegate { text = composer.Text; }); var comment = Application.Client.API.CreateGistComment(Model.Id, text); if (_comments != null) { var temp = new List <GistCommentModel>(); temp.Add(comment.Data); AddToCommentList(temp); } InvokeOnMainThread(delegate { if (_tabButtons.Selected == 1) { OnRefresh(); } composer.CloseComposer(); }); }, null, () => { composer.EnableSendButton = true; }); }); }
private void ChangeDescription() { var composer = new Composer { Title = "Description", Text = _model.Description }; composer.NewComment(this, () => { var text = composer.Text; _model.Description = text; composer.CloseComposer(); }); }