Exemplo n.º 1
0
        private async void AppBarButton_Click_1(object sender, RoutedEventArgs e)
        {
            var result = await PostManagement.PostActivity(contentTextBox.Text, selectedItems, link, selectedEmoticon, reshareId, place, imageContent);

            if (result == 0)
            {
                if (operation != null)
                {
                    operation.ReportCompleted();
                }
                if (this.Frame.CanGoBack)
                {
                    this.Frame.GoBack();
                }
            }
            else
            {
                var messageDialog = new MessageDialog("Cannot into. Contact with developer.");
                await messageDialog.ShowAsync();
            }
        }