示例#1
0
 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;
 }
示例#2
0
 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);
        }
示例#4
0
 // Adds entry to the catalog (the catalog will take ownership of the object).
 public void AddDeletedItem(CatalogDeletedEntry data)
 {
     deletedEntriesList.Add(data);
 }
示例#5
0
        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;
        }