Beispiel #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds the note.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        internal static bool AddNote(string lang, string text, List <TMXNote> noteList)
        {
            var note = new TMXNote();

            note.Text = text;
            note.Lang = lang;
            return(AddNote(note, noteList));
        }
Beispiel #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds the note.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        internal static bool AddNote(TMXNote note, List <TMXNote> noteList)
        {
            if (note == null || note.IsEmpty || noteList == null)
            {
                return(false);
            }

            noteList.Add(note);
            return(true);
        }
Beispiel #3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Adds a note to the notes list.
 /// </summary>
 /// <param name="note">The note.</param>
 /// <returns>true if the note was added successfully. Otherwise, false.</returns>
 /// ------------------------------------------------------------------------------------
 public bool AddNote(TMXNote note)
 {
     return(TMXNote.AddNote(note, _notes));
 }
Beispiel #4
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Adds a note to the notes list.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public bool AddNote(string lang, string text)
 {
     return(TMXNote.AddNote(lang, text, _notes));
 }