Ejemplo n.º 1
0
 /// <summary>
 /// Setter for timezone
 /// </summary>
 /// <param name="value">Value to set</param>
 /// <returns>Returns true if timezone has been set, otherwise false</returns>
 public Boolean setTTTimezone(int value)
 {
     if (InputChecker.checkTimezone(value).noErrors)
     {
         this.timezone = value;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Setter for latitude. String should be in the format:
        /// dd.mm.ss D (D= plus or minus sign) and 0 &lt; input &lt; 90
        /// </summary>
        /// <param name="value">Text for latitude</param>
        /// <returns>true if latitude has been set, otherwise false.</returns>
        public Boolean setLLLatitude(String value)
        {
            ValidationItem vi = InputChecker.checkGeoLatitude(value);

            if (vi.noErrors)
            {
                this.latitude = value;
                return(true);
            }
            else
            {
                return(false);
            }
        }