Exemplo n.º 1
0
 /* ----------------------------------------------------------------- */
 ///
 /// SettingFolder
 ///
 /// <summary>
 /// Initializes a new instance of the SettingFolder class with the
 /// specified arguments.
 /// </summary>
 ///
 /// <param name="assembly">Assembly object.</param>
 /// <param name="format">Serialization format.</param>
 /// <param name="path">Path to save settings.</param>
 /// <param name="io">I/O handler.</param>
 ///
 /* ----------------------------------------------------------------- */
 public SettingFolder(Assembly assembly, DataContract.Format format, string path, IO io) :
     base(assembly, format, path, io)
 {
     AutoSave       = false;
     DocumentName   = GetDocumentName(string.Empty);
     Version.Digit  = 3;
     Version.Suffix = "";
 }
        /* ----------------------------------------------------------------- */
        ///
        /// 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>
        ///
        /* ----------------------------------------------------------------- */
        public SettingFolder(Assembly assembly, DataContract.Format format, string location) :
            base(format, location, assembly.GetSoftwareVersion())
        {
            AutoSave = false;

            var exe = Io.Combine(assembly.GetDirectoryName(), "CubeChecker.exe");

            Startup = new("cubeice-checker") { Source = exe };
            Startup.Arguments.Add("cubeice");
            Startup.Arguments.Add("/subkey");
            Startup.Arguments.Add("CubeICE");
        }
Exemplo n.º 3
0
 /* ----------------------------------------------------------------- */
 ///
 /// SettingFolder
 ///
 /// <summary>
 /// Initializes a new instance of the SettingFolder class with the
 /// specified arguments.
 /// </summary>
 ///
 /// <param name="assembly">Assembly object.</param>
 /// <param name="format">Serialization format.</param>
 /// <param name="path">Path to save settings.</param>
 ///
 /* ----------------------------------------------------------------- */
 public SettingFolder(Assembly assembly, DataContract.Format format, string path) :
     this(assembly, format, path, new IO())
 {
 }
 /* ----------------------------------------------------------------- */
 ///
 /// SettingFolder
 ///
 /// <summary>
 /// Initializes a new instance of the SettingFolder with the
 /// specified parameters.
 /// </summary>
 ///
 /// <param name="format">Serialized format.</param>
 /// <param name="location">Location for the settings.</param>
 ///
 /* ----------------------------------------------------------------- */
 public SettingFolder(DataContract.Format format, string location) :
     this(typeof(SettingFolder).Assembly, format, location)
 {
 }