Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Annotation EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAnnotation(Annotation annotation)
 {
     base.AddObject("Annotation", annotation);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Annotation object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="vectGraphics">Initial value of the VectGraphics property.</param>
 /// <param name="thumb">Initial value of the Thumb property.</param>
 /// <param name="canvWidth">Initial value of the CanvWidth property.</param>
 /// <param name="canvHeight">Initial value of the CanvHeight property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Annotation CreateAnnotation(global::System.Int32 id, global::System.Byte[] vectGraphics, global::System.Byte[] thumb, global::System.Int32 canvWidth, global::System.Int32 canvHeight, global::System.String name)
 {
     Annotation annotation = new Annotation();
     annotation.Id = id;
     annotation.VectGraphics = vectGraphics;
     annotation.Thumb = thumb;
     annotation.CanvWidth = canvWidth;
     annotation.CanvHeight = canvHeight;
     annotation.Name = name;
     return annotation;
 }
Ejemplo n.º 3
0
        public static void RemoveAnnotation(Annotation a)
        {
            a.Person = null;
            a.Discussion = null;

            PublicBoardCtx.Get().Annotation.DeleteObject(a);
        }