Ejemplo n.º 1
0
        /// <summary>
        /// Creates a copy of the note.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public EncounterNote Copy()
        {
            EncounterNote en = new EncounterNote();

            en.ID       = fID;
            en.Title    = fTitle;
            en.Contents = fContents;

            return(en);
        }
Ejemplo n.º 2
0
        public EncounterNote Copy()
        {
            EncounterNote encounterNote = new EncounterNote()
            {
                ID       = this.fID,
                Title    = this.fTitle,
                Contents = this.fContents
            };

            return(encounterNote);
        }
Ejemplo n.º 3
0
        public EncounterNote FindNote(string note_title)
        {
            EncounterNote encounterNote;

            List <EncounterNote> .Enumerator enumerator = this.fNotes.GetEnumerator();
            try
            {
                while (enumerator.MoveNext())
                {
                    EncounterNote current = enumerator.Current;
                    if (current.Title != note_title)
                    {
                        continue;
                    }
                    encounterNote = current;
                    return(encounterNote);
                }
                return(null);
            }
            finally
            {
                ((IDisposable)enumerator).Dispose();
            }
        }