/* ----------------------------------------------------------------- */ /// /// SettingsFolder /// /// <summary> /// オブジェクトを初期化します。 /// </summary> /// /// <param name="assembly">アセンブリ情報</param> /// <param name="format">設定情報の保存方法</param> /// <param name="location">設定情報の保存パス</param> /// <param name="io">I/O オブジェクト</param> /// /* ----------------------------------------------------------------- */ public SettingsFolder(Assembly assembly, Cube.DataContract.Format format, string location, IO io) : base(assembly, format, location, io) { AutoSave = false; Version.Digit = 3; Version.Suffix = Properties.Resources.VersionSuffix; }
/* ----------------------------------------------------------------- */ /// /// SettingsFolder /// /// <summary> /// オブジェクトを初期化します。 /// </summary> /// /// <param name="format">設定情報の保存方法</param> /// <param name="path">設定情報の保存パス</param> /// <param name="io">I/O オブジェクト</param> /// /* ----------------------------------------------------------------- */ public SettingsFolder(Cube.DataContract.Format format, string path, IO io) : base(System.Reflection.Assembly.GetExecutingAssembly(), format, path, io) { AutoSave = false; MachineName = Environment.MachineName; UserName = Environment.UserName; DocumentName = new DocumentName(string.Empty, Assembly.Product, IO); WorkDirectory = GetWorkDirectory(); Version.Digit = 3; Version.Suffix = $"RC{Assembly.Version.Revision}"; UpdateProgram = IO.Combine(IO.Get(Assembly.Location).DirectoryName, "cubepdf-checker.exe"); }
/* ----------------------------------------------------------------- */ /// /// SettingFolder /// /// <summary> /// Initializes a new instance of the SettingFolder with the /// specified parameters. /// </summary> /// /// <param name="assembly">Assembly information.</param> /// <param name="format">Serialized format.</param> /// <param name="location">Location for the settings.</param> /// <param name="io">I/O handler</param> /// /* ----------------------------------------------------------------- */ public SettingFolder(Assembly assembly, Cube.DataContract.Format format, string location, IO io) : base(assembly, format, location, io) { AutoSave = false; Version.Digit = 3; }