Пример #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;
 }
Пример #3
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);
        }
Пример #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;
        }