/// <summary>
        /// Constructor, that accepts data from an existing Paragraf
        /// </summary>
        /// <param name="paragraf">Paragraf</param>
        public Paragraf(Paragraf paragraf)
        {
            if (paragraf != null)
            {
                this.id      = paragraf.id;
                this.project = paragraf.Project;
                this.text    = paragraf.Text;
            }

            else
            {
                this.id      = 0;
                this.project = new Project();
                this.text    = "";
            }
        }
 /// <summary>
 /// Constructor to add a new Indexed Paragraf
 /// </summary>
 /// <param name="index">int</param>
 /// <param name="paragraph">Paragraf</param>
 public IndexedParagraf(int index, Paragraf paragraph) : base(paragraph)
 {
     this.index = index;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor, that accepts data from an existing Indexed Bullet
 /// </summary>
 /// <param name="bullet">IndexedBullet</param>
 public Bullet(IndexedBullet bullet)
 {
     this.id        = bullet.id;
     this.paragraph = bullet.Paragraf;
     this.text      = bullet.Text;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Costructor to add a a Bullet from Db
 /// </summary>
 /// <param name="id">int</param>
 /// <param name="paragraph">int</param>
 /// <param name="text">string</param>
 public Bullet(int id, Paragraf paragraph, string text)
 {
     this.id        = id;
     this.paragraph = paragraph;
     this.text      = text;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Costructor to add a a new Bullet
 /// </summary>
 /// <param name="paragraph">int</param>
 /// <param name="text">string</param>
 public Bullet(Paragraf paragraph, string text)
 {
     this.id        = 0;
     this.paragraph = paragraph;
     this.text      = text;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Empty Constructor
 /// </summary>
 public Bullet()
 {
     this.id   = 0;
     paragraph = new Paragraf();
     text      = "";
 }