Example #1
0
        public static void ErrorRenameXML(System.Xml.XmlDocument doc, string sXMLFilename, 
			string sError, CarverLabUtility.Logger log, bool bDeleteOriginal)
        {
            log.WriteLog(sError);
            System.IO.FileInfo fi = new System.IO.FileInfo(sXMLFilename);
            fi.MoveTo(System.IO.Path.ChangeExtension(fi.FullName,".err"));
            //System.IO.File.Move(sXMLFilename,sXMLFilename + ".err");
            //			log.WriteLog("    Renaming XML file...");
            //if (doc == null)
            //{
            //	doc = new System.Xml.XmlDocument();
            //	doc.Load(sXMLFilename);
            //}
            /*
            System.Xml.XmlElement elt = doc.CreateElement("ENCODEERROR");
            elt.InnerText = sError;
            doc.DocumentElement.AppendChild(elt);
            */
            //doc.Save(sXMLFilename + ".err");
            //if (bDeleteOriginal)
            //	System.IO.File.Delete(sXMLFilename);
            log.WriteLog("    XML file copied or renamed to: " + sXMLFilename + ".err");
        }
Example #2
0
 internal void AddChild(CarverLabUtility.Window ChildWindow)
 {
     throw new System.NotImplementedException();
 }
Example #3
0
 public InternalCallbackParams(CarverLabUtility.Win32Wrapper This, System.Object obj)
 {
     m_This = This;
     m_obj = obj;
 }
Example #4
0
 internal virtual void OnEnumWindowsExReceived(CarverLabUtility.Window window, System.Object obj)
 {
     if (EnumWindowsExReceived != null)
     {
         EnumWindowsExReceived(window,obj);
     }
 }
Example #5
0
        public static void ErrorRenameXML(System.Xml.XmlDocument doc, string sXMLFilename, 
			string sError, CarverLabUtility.Logger log)
        {
            ErrorRenameXML(doc,sXMLFilename,sError,log,true);
        }