コード例 #1
0
        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();
        }
コード例 #2
0
 private void DisposeData()
 {
     TextHeadImg.DeleteFile();
     TextVideo.DeleteFile();
     TextFrotImage.DeleteFile();
 }
コード例 #3
0
 private bool IsCheckInput()
 {
     if (string.IsNullOrEmpty(this.TextBoxName.Text.Trim()))
     {
         MessageBox.Show("艺人艺名不能为空!", "提示");
         TextBoxName.Focus();
         return(false);
     }
     if (string.IsNullOrEmpty(this.TextBoxPhone.Text.Trim()))
     {
         MessageBox.Show("手机不能为空!", "提示");
         TextBoxPhone.Focus();
         return(false);
     }
     if (string.IsNullOrEmpty(this.TextHeadImg.GetUrl().Trim()))
     {
         MessageBox.Show("头像不能为空!", "提示");
         TextHeadImg.Focus();
         return(false);
     }
     //if (string.IsNullOrEmpty(this.TextVideo.GetUrl().Trim()))
     //{
     //    MessageBox.Show("视频不能为空!", "提示");
     //    TextVideo.Focus();
     //    return false;
     //}
     if (this.ComboBoxLoaction.GetCity() == null)
     {
         MessageBox.Show("所在地不能为空!", "提示");
         ComboBoxLoaction.Focus();
         return(false);
     }
     if (string.IsNullOrEmpty(this.TextBoxCareer.Text.Trim()))
     {
         MessageBox.Show("职业不能为空!", "提示");
         TextBoxCareer.Focus();
         return(false);
     }
     if (string.IsNullOrEmpty(this.TextBirth.Text.Trim()))
     {
         MessageBox.Show("出生日期不能为空!", "提示");
         TextBirth.Focus();
         return(false);
     }
     if (string.IsNullOrEmpty(this.TextFrotImage.GetUrl().Trim()))
     {
         MessageBox.Show("艺人封面图不能为空!", "提示");
         TextFrotImage.Focus();
         return(false);
     }
     if (string.IsNullOrEmpty(this.TextWebHtml.HtmlContent.Trim()))
     {
         MessageBox.Show("艺人介绍不能为空!", "提示");
         TextWebHtml.Focus();
         return(false);
     }
     //if (this.TextWebHtml.HtmlContent.Length>=5000)
     //{
     //    MessageBox.Show("艺人介绍长度超过5000!", "提示");
     //    TextWebHtml.Focus();
     //    return false;
     //}
     return(true);
 }