Ejemplo n.º 1
0
 public bool Validate()
 {
     ErrorString = "";
     if (description.Length != 0 && description.Trim(' ').Count() != 0 && MeasurementType.Length != 0 && MeasurementType.Trim(' ').Count() != 0 && MaxValue >= 0 && MaxValue >= 0 && MinValue >= 0 && MinValue >= 0 && NormalValue >= 0 && NormalValue >= 0)
     {
         double help1 = 0;
         double help2 = 0;
         double help3 = 0;
         double help4 = 0;
         double help5 = 0;
         try
         {
         }
         catch
         {
             return(false);
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }