added code to put a copyright notice in each format file

added code to put a copyright notice in each genmac file
This commit is contained in:
John Jenko 2012-10-25 18:48:42 +00:00
parent 29f2d79fed
commit 8284c66da2
2 changed files with 3 additions and 0 deletions

View File

@ -13,7 +13,9 @@ namespace fmtxml
{ {
MyPath = path; MyPath = path;
XmlDocument xmldoc = new XmlDocument(); XmlDocument xmldoc = new XmlDocument();
XmlComment copyright = xmldoc.CreateComment("Proprietary Information - Copyright 2012 - Volian Enterprises, Inc. All rights reserved.");
XmlElement top = xmldoc.CreateElement("PlantFormat"); XmlElement top = xmldoc.CreateElement("PlantFormat");
xmldoc.AppendChild(copyright);
xmldoc.AppendChild(top); xmldoc.AppendChild(top);
try try
{ {

View File

@ -161,6 +161,7 @@ namespace fmtxml
private static bool AddSvgPrefix(FileInfo file, StringBuilder sb, bool svg) private static bool AddSvgPrefix(FileInfo file, StringBuilder sb, bool svg)
{ {
sb.Append("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n"); sb.Append("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n");
sb.Append("<!--Proprietary Information - Copyright 2012 - Volian Enterprises, Inc. All rights reserved.-->\r\n");
sb.Append("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8in\" height=\"10in\" viewBox=\"0 0 576 720\">\r\n"); sb.Append("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8in\" height=\"10in\" viewBox=\"0 0 576 720\">\r\n");
sb.Append(string.Format(" <desc>{0}</desc>\r\n", file.Name.ToLower().Replace(".rtf", ""))); sb.Append(string.Format(" <desc>{0}</desc>\r\n", file.Name.ToLower().Replace(".rtf", "")));
svg = true; svg = true;