Exemple #1
0
 /// <summary>
 /// Constructs an Annotation ViewModel from an Annotation Model
 /// </summary>
 /// <param name="annotation">The Annotation model</param>
 public Annotation(Models.Annotation annotation)
 {
     ID                = annotation.ID;
     Type              = annotation.Type.ToString();
     Points            = annotation.Points.Select(p => new Vector2(p)).ToList();
     PercentDifference = annotation.PercentDifference;
 }
        public override Models.ILiiteriMarker Create(DbDataReader rdr)
        {
            var obj = new Models.Annotation();

            obj.Description        = (string)rdr["Annotation"];
            obj.OrganizationName   = (string)rdr["AnnotationOrganizationName"];
            obj.OrganizationShort  = (string)rdr["AnnotationOrganizationShort"];
            obj.OrganizationNumber = (string)rdr["AnnotationOrganizationNumber"];
            return(obj);
        }