public static void SaveToDisk(DataTypeDefinition item)
 {
     if (item != null)
     {
         try
         {
             XmlDocument xmlDoc = helpers.XmlDoc.CreateDoc();
             xmlDoc.AppendChild(DataTypeToXml(item, xmlDoc));
             helpers.XmlDoc.SaveXmlDoc(item.GetType().ToString(), item.Text, xmlDoc);
         }
         catch (Exception ex)
         {
             Log.Add(LogTypes.Error, 0, string.Format("Saving DataType Failed {0} {1}", item.Text, ex.ToString() ));
         }
     }
     else
     {
         Log.Add(LogTypes.Error, 0, "Null DataType Save attempt - aborted");
     }
 }
Esempio n. 2
0
 public static void SaveToDisk(DataTypeDefinition item)
 {
     if (item != null)
     {
         try
         {
             XmlDocument xmlDoc = helpers.XmlDoc.CreateDoc();
             xmlDoc.AppendChild(DataTypeToXml(item, xmlDoc));
             helpers.XmlDoc.SaveXmlDoc(item.GetType().ToString(), item.Text, xmlDoc);
         }
         catch (Exception ex)
         {
             helpers.uSyncLog.ErrorLog(ex, "Saving DataType Failed {0}", item.Text );
         }
     }
     else
     {
         helpers.uSyncLog.DebugLog("Null DataType Save attempt - aborted");
     }
 }