/* ----------------------------------------------------------------- */ /// /// Save /// /// <summary> /// 現在の設定を指定されたパスに XML 形式で保存します。 /// </summary> /// /* ----------------------------------------------------------------- */ public bool Save(string path) { bool status = true; try { throw new NotImplementedException(); } catch (Exception /* err */) { var document = new CubePdf.Settings.Document(); Save(document); document.Write(path, Settings.FileFormat.Xml); } return status; }
/* ----------------------------------------------------------------- */ /// /// Save /// /// <summary> /// 現在の設定をレジストリに保存します。 /// </summary> /// /* ----------------------------------------------------------------- */ public bool Save() { bool status = true; try { var document = new CubePdf.Settings.Document(); Save(document); using (var root = Registry.CurrentUser.CreateSubKey(_RegRoot + '\\' + _RegVersion)) { document.Write(root); } } catch (Exception /* err */) { status = false; } return status; }