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