Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void AddCrowFoundWindow_Loaded(object sender, RoutedEventArgs e)
        {
            string key = QiniuUtil.GenerateGuid();

            TextFrontImg.SetKey(String.Format("{0}_crowdfundfrontimg", key));
            CityControl.LoadData();
            TextArtType.LoadData();
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        private bool IsCheckInput()
        {
            if (string.IsNullOrEmpty(this.TextCrowName.Text))
            {
                MessageBox.Show("众筹名称不能为空!", "提示");
                TextCrowName.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextBeginDate.Text))
            {
                MessageBox.Show("开始时间不能为空!", "提示");
                TextBeginDate.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextEndDate.Text))
            {
                MessageBox.Show("结束时间不能为空!", "提示");
                TextEndDate.Focus();
                return(false);
            }

            if (TextBeginDate.Value <= DateTime.Now)
            {
                MessageBox.Show("开始时间必须晚于今天!", "提示");
                TextBeginDate.Focus();
                return(false);
            }
            if (TextBeginDate.Value >= TextEndDate.Value)
            {
                MessageBox.Show("开始时间必须早于结束时间!", "提示");
                TextEndDate.Focus();
                return(false);
            }

            if (this.CityControl.GetCity() == null)
            {
                MessageBox.Show("城市不能为空!", "提示");
                CityControl.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextAddress.Text.Trim()))
            {
                MessageBox.Show("服务地点详细地址不能为空!", "提示");
                TextAddress.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextServiceDuration.Text))
            {
                MessageBox.Show("服务时长不能为空!", "提示");
                TextServiceDuration.Focus();
                return(false);
            }

            if (this.TextActor.SelectActor == null)
            {
                MessageBox.Show("服务艺人不能为空!", "提示");
                TextActor.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextServiceCost.Text.Trim()))
            {
                MessageBox.Show("服务费用不能为空!", "提示");
                TextServiceCost.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextNote.HtmlContent.Trim()))
            {
                MessageBox.Show("注意事项不能为空!", "提示");
                TextNote.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextFrontImg.GetUrl().Trim()))
            {
                MessageBox.Show("封面图不能为空!", "提示");
                TextFrontImg.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(this.TextServiceIntro.HtmlContent.Trim()))
            {
                MessageBox.Show("封面图不能为空!", "提示");
                TextServiceIntro.Focus();
                return(false);
            }
            if (this.TextCrowDetail.CtTypes.Count == 0)
            {
                MessageBox.Show("众筹详情不能为空!", "提示");
                TextCrowDetail.Focus();
                return(false);
            }
            return(true);
        }
Ejemplo n.º 5
0
 private void DisposeData()
 {
     TextFrontImg.DeleteFile();
     TextServiceIntro.DeleteFile();
 }