void OnSendClicked(object sender, EventArgs e) { Toast.MakeText(this, "Sende WallPost", ToastLength.Short).Show(); var post = CreateWallPost(); new Thread(() => _newsfeedMessageProcessor.PostSingleNewsfeed(post)).Start(); }
void OnSendClicked(object sender, EventArgs e) { if (App.bitmap == null || String.IsNullOrEmpty(inpText.Text)) { Toast.MakeText(this, "Kein Text, kein Bild, kein Post ;)", ToastLength.Long).Show(); return; } WallPost post = CreateWallPost(); _newsfeedMessageProcessor.PostSingleNewsfeed(post); _newsfeedRepository.DeleteAllWallPosts(); Toast.MakeText(this, "Posted", ToastLength.Short).Show(); App.bitmap = null; Finish(); }