Ejemplo n.º 1
0
        private async void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Video v     = new Video();
            var   frame = (Frame)Window.Current.Content;
            var   page  = (MainPage)frame.Content;

            var token = await page.LoginControl.GetToken();

            string result = await v.AddComment((DataContext as Entry).media_group.yt_videoid.t,
                                               CommentBox.Text, token);

            comments((DataContext as Entry), token);

            CommentBox.Text = string.Empty;
        }