/// ------------------------------------------------------------------------------------ /// <summary> /// Adds the note. /// </summary> /// ------------------------------------------------------------------------------------ public static bool AddNote(string lang, string text, List <XLiffNote> noteList) { var note = new XLiffNote(); note.Text = text; note.NoteLang = lang; return(AddNote(note, noteList)); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Adds the note. /// </summary> /// ------------------------------------------------------------------------------------ public static bool AddNote(XLiffNote note, List <XLiffNote> 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(XLiffNote note) { return(XLiffNote.AddNote(note, _notes)); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Adds a note to the notes list. /// </summary> /// ------------------------------------------------------------------------------------ public bool AddNote(string lang, string text) { return(XLiffNote.AddNote(lang, text, _notes)); }