示例#1
0
        /// ------------------------------------------------------------------------------------
        /// <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));
        }
示例#2
0
        /// ------------------------------------------------------------------------------------
        /// <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);
        }
示例#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(XLiffNote note)
 {
     return(XLiffNote.AddNote(note, _notes));
 }
示例#4
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Adds a note to the notes list.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public bool AddNote(string lang, string text)
 {
     return(XLiffNote.AddNote(lang, text, _notes));
 }