コード例 #1
0
ファイル: AddCommentActivity.cs プロジェクト: sgjp/musico-app
        private async void AddCommentBtn_Click(object sender, EventArgs e)
        {
            type    = qualificationSPN.SelectedItem.ToString();
            comment = commentTV.Text;

            int result = await MusicoConnUtil.AddComment(comment, type, bandId, userId);

            Intent intent = new Intent(this, typeof(CommentsActivity));

            intent.PutExtra("name", bandName);
            intent.PutExtra("id", userId);

            Toast.MakeText(this, "Comment added!", ToastLength.Short).Show();
            StartActivity(intent);
            Finish();
        }