public CatalogDeletedEntry(CatalogDeletedEntry dt) { deletedLines = new List <string> (dt.deletedLines); references = new List <string> (dt.references); autocomments = new List <string> (dt.autocomments); flags = dt.flags; comment = dt.comment; }
public CatalogDeletedEntry(CatalogDeletedEntry dt) { deletedLines = new List<string> (dt.deletedLines); references = new List<string> (dt.references); autocomments = new List<string> (dt.autocomments); flags = dt.flags; comment = dt.comment; }
protected override bool OnDeletedEntry(string[] deletedLines, string flags, string[] references, string comment, string[] autocomments) { CatalogDeletedEntry d = new CatalogDeletedEntry(new string[0]); if (!String.IsNullOrEmpty(flags)) { d.Flags = flags; } d.SetDeletedLines(deletedLines); d.SetComment(comment); for (uint i = 0; i < autocomments.Length; i++) { d.AddAutoComments(autocomments[i]); } catalog.AddDeletedItem(d); return(true); }
// Adds entry to the catalog (the catalog will take ownership of the object). public void AddDeletedItem(CatalogDeletedEntry data) { deletedEntriesList.Add(data); }
protected override bool OnDeletedEntry(string[] deletedLines, string flags, string[] references, string comment, string[] autocomments) { CatalogDeletedEntry d = new CatalogDeletedEntry (new string[0]); if (!String.IsNullOrEmpty (flags)) d.Flags = flags; d.SetDeletedLines (deletedLines); d.SetComment (comment); for (uint i = 0; i < autocomments.Length; i++) { d.AddAutoComments (autocomments[i]); } catalog.AddDeletedItem (d); return true; }