public void EditProperties() { object macro = XmlTool.DeserializeObject(m_file.DataDiskPath); if (EditPropertiesForm.Run(macro, true)) { XmlTool.SerializeObject(m_file.DataDiskPath, macro); } }
public void SaveToFile(string file, string pycode) { XmlTool.SerializeObject(file, this); string pyfile = Path.ChangeExtension(file, ".py"); using (StreamWriter fw = new StreamWriter(pyfile, false)) { fw.Write(pycode); } }
public static void Save() { try { if (GlobalSettings.Pages.Cache().CacheMode == CacheMode.UsePersistent) { XmlTool.SerializeObject(Filename, Instance); } } catch (Exception err) { Logging.Warning("Error saving UI cache:" + err.Message); } }
public void SaveCustom() { XmlTool.SerializeObject(Path.Combine(Core.ConfigDirectory, "drivers.xml"), m_customDrivers); }