Exemple #1
0
        public Annotation(string annotationClass, string refUrl, string path)
        {
            refUrl = UrlHelper.GetEscapedUrl(refUrl);
             _element = XElement.Parse(string.Format("<annotation class='{0}' ref='{1}' guid='{2}'/>", annotationClass,refUrl, System.Guid.NewGuid().ToString()));

             _class = GetAnnotationClass();
            AnnotationFilePath = path; //TODO: this awkward, and not avail in the XElement constructor
        }
Exemple #2
0
        public Annotation(string annotationClass, string refUrl, Guid guid, string path)
        {
            refUrl   = UrlHelper.GetEscapedUrl(refUrl);
            _element = XElement.Parse(String.Format("<annotation class='{0}' ref='{1}' guid='{2}'/>",
                                                    annotationClass, refUrl, guid.ToString()));

            _class             = GetAnnotationClass();
            AnnotationFilePath = path;             //TODO: this awkward, and not avail in the XElement constructor
        }
Exemple #3
0
 public Annotation(XElement element)
 {
     _element = element;
     _class   = GetAnnotationClass();
 }
Exemple #4
0
 public Annotation(XElement element)
 {
     _element = element;
     _class = GetAnnotationClass();
 }