private void BtEditVideoClick(object sender, RoutedEventArgs e) { App app = Application.Current as App; if (app == null) return; var client = new VideosServiceClient(app.EsbUsername, app.EsbPassword, app.EsbAccessKey); //Title and randname are mandatory. VideoSubmition v = new VideoSubmition { Randname = this.tb_VideoRandnameForEditVideo.Text, Synopse = this.tb_VideoSynopseForEditVideo.Text, Title = this.tb_VideoTitleForEditVideo.Text }; client.EditVideoAsync(v); this.tblock_Result.Text = "SUCCESS"; }