/// ------------------------------------------------------------------------------------ /// <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)); }
/// ------------------------------------------------------------------------------------ /// <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); }
/// ------------------------------------------------------------------------------------ /// <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)); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Adds a note to the notes list. /// </summary> /// ------------------------------------------------------------------------------------ public bool AddNote(string lang, string text) { return(TMXNote.AddNote(lang, text, _notes)); }