예제 #1
0
 private bool pf_input_valid()
 {
     if (pdDate.SelectedDate == null || pdDate.Text == string.Empty)
     {
         Valid_Ani va1 = new Valid_Ani();
         Ani_pdDate.BeginAnimation(SolidColorBrush.ColorProperty, va1.color_Ani);
         return(false);
     }
     if (pdUnit.Text == null || pdUnit.Text == string.Empty)
     {
         Valid_Ani va2 = new Valid_Ani();
         Ani_pdUnit.BeginAnimation(SolidColorBrush.ColorProperty, va2.color_Ani);
         return(false);
     }
     if (planDate.SelectedDate == null || planDate.Text == string.Empty)
     {
         Valid_Ani va3 = new Valid_Ani();
         Ani_planDate.BeginAnimation(SolidColorBrush.ColorProperty, va3.color_Ani);
         return(false);
     }
     if (PlanFix.Text == null || PlanFix.Text == string.Empty)
     {
         Valid_Ani va4 = new Valid_Ani();
         Ani_planFix.BeginAnimation(SolidColorBrush.ColorProperty, va4.color_Ani);
         return(false);
     }
     return(true);
 }  //验证函数
예제 #2
0
 private void planDate_GotFocus(object sender, RoutedEventArgs e)
 {
     Ani_planDate.BeginAnimation(SolidColorBrush.ColorProperty, null);
 }