public void Save() { if (!this.Metadata.IsRemoved) { var data = new YSection(); this.Solution.WriteTo(data); _converter.Save(this.Folder.GetSolutionFilePath(), data); } }
public static void Save(string filename, YSection root) { #if RELEASE try { #endif if (_last_type == YenconType.Text) { _txt_cnvtr.Save(filename, root); } else if (_last_type == YenconType.Binary) { _bin_cnvtr.Save(filename, root); } else { _last_type = YenconType.Text; _txt_cnvtr.Save(filename, root); } #if RELEASE } catch (Exception e) { Program.ShowError(e); } #endif }
public static void Save() { if (!_is_initialized) { throw new ObjectDisposedException(nameof(SettingManager)); } { // system _txt_cnvtr.Save(_p_system_inix, _y_system_inix); _bin_cnvtr.Save(_p_system_cfg, _y_system_cfg); } // system }