private void AddVideoWindow_Loaded(object sender, RoutedEventArgs e) { string key = QiniuUtil.GenerateGuid(); TextFrontImg.SetKey(String.Format("{0}_videofrontimg", key)); TextVideo.SetKey(String.Format("{0}_video", key)); TextArtType.LoadData(); }
private void AddActorWindow_Loaded(object sender, RoutedEventArgs e) { string key = QiniuUtil.GenerateGuid(); TextHeadImg.SetKey(String.Format("{0}_userhead", key)); TextVideo.SetKey(String.Format("{0}_uservideo", key)); TextFrotImage.SetKey(String.Format("{0}_userfrontimg", key)); ComboBoxLoaction.LoadData(); }
private bool IsCheckInput() { if (string.IsNullOrEmpty(this.TextBoxTitle.Text.Trim())) { MessageBox.Show("视频标题不能为空!", "提示"); TextBoxTitle.Focus(); return(false); } if (string.IsNullOrEmpty(this.TextFrontImg.GetUrl().Trim())) { MessageBox.Show("封面图不能为空!", "提示"); TextFrontImg.Focus(); return(false); } if (string.IsNullOrEmpty(this.TextVideo.GetUrl().Trim())) { MessageBox.Show("视频信息不能为空!", "提示"); TextVideo.Focus(); return(false); } if (string.IsNullOrEmpty(this.TextVideoDuration.Text.Trim())) { MessageBox.Show("视频时长不能为空!", "提示"); TextVideoDuration.Focus(); return(false); } if (string.IsNullOrEmpty(this.TextBrief.Text.Trim())) { MessageBox.Show("简易描述不能为空!", "提示"); TextBrief.Focus(); return(false); } if (string.IsNullOrEmpty(this.TextIntro.Text.Trim())) { MessageBox.Show("详细描述不能为空!", "提示"); TextIntro.Focus(); return(false); } if (string.IsNullOrEmpty(this.ArtTags.Label1.Trim())) { MessageBox.Show("艺术标签不能为空!", "提示"); ArtTags.Focus(); return(false); } return(true); }
private void DisposeData() { TextHeadImg.DeleteFile(); TextVideo.DeleteFile(); TextFrotImage.DeleteFile(); }