Esempio n. 1
0
		/// <summary>
		/// Saves the current settings to the specified file.
		/// 
		/// You must implement WriteSettings for any data to be written.
		/// </summary>
		public void Save()
		{
			UserSettingsWriter writer = new UserSettingsWriter(EncryptionKey);
			WriteSettings(writer);
			writer.Save(SettingsPath);
		}
Esempio n. 2
0
		public abstract void WriteSettings(UserSettingsWriter writer);
Esempio n. 3
0
        // Must override WriteSettings() to write values
        public override void WriteSettings(UserSettingsWriter writer)
        {
            #region Local, Remote, AcroWrap and Printer etc
            writer.Write("Local_Path", Path_Local_Path);
            writer.Write("Remote_Path", Path_Remote_Path);
            writer.Write("AcroWrap_Path", Path_AcroWrap_Path);
            writer.Write("Printer_Temp_Path", Path_Printer_Temp);
            writer.Write("Helpfile_Path", Path_Helpfile_Path);
            writer.Write("SMTP_Host_Name", Path_SMTP_Host);

            //writer.Write("Path_To_Settings", Path_To_Settings);
            writer.Write("Printer_Name", Printer_Name);
            #endregion

            #region FruPak Test Mode Database Connection Settings
            writer.Write("TestMode_Server", TestMode_Server);
            writer.Write("TestMode_Database", TestMode_Database);
            writer.Write("TestMode_User_Id", TestMode_User_Id);
            writer.WriteEncrypted("TestMode_Password", TestMode_Password);
            #endregion

            #region FruPak Production Mode Database Connection Settings
            writer.Write("ProductionMode_Server", ProductionMode_Server);
            writer.Write("ProductionMode_Database", ProductionMode_Database);
            writer.Write("ProductionMode_User_Id", ProductionMode_User_Id);
            writer.WriteEncrypted("ProductionMode_Password", ProductionMode_Password);
            #endregion

            #region Phantom Test Mode Database Connection Settings
            writer.Write("Phantom_Dev_TestMode_Server", Phantom_Dev_TestMode_Server);
            writer.Write("Phantom_Dev_TestMode_Database", Phantom_Dev_TestMode_Database);
            writer.Write("Phantom_Dev_TestMode_User_Id", Phantom_Dev_TestMode_User_Id);
            writer.WriteEncrypted("Phantom_Dev_TestMode_Password", Phantom_Dev_TestMode_Password);
            #endregion

            #region Phantom Production Mode Database Connection Settings
            writer.Write("Phantom_Dev_ProductionMode_Server", Phantom_Dev_ProductionMode_Server);
            writer.Write("Phantom_Dev_ProductionMode_Database", Phantom_Dev_ProductionMode_Database);
            writer.Write("Phantom_Dev_ProductionMode_User_Id", Phantom_Dev_ProductionMode_User_Id);
            writer.WriteEncrypted("Phantom_Dev_ProductionMode_Password", Phantom_Dev_ProductionMode_Password);
            #endregion

            // Booleans
            writer.Write("Phantom_Dev_Mode", Phantom_Dev_Mode);
            writer.Write("Use_FruPak-SQL", Phantom_Dev_Use_FruPak_SQL);
            writer.Write("Copy_At_Startup", CopyAtStartup);

            writer.Write("Copy_Delay_In_Minutes", CopyDelayInMinutes);
            writer.Write("Max_Tree_File_Size_In_Megabytes", MaxTreeFileSizeInMegabytes);

            writer.Write("Update_Address", UpdateAddress);
            writer.Write("Update_Proxy_Username", UpdateProxyUsername);
            writer.Write("Update_Proxy_Password", UpdateProxyPassword);
            writer.Write("Update_Proxy_URI", UpdateProxyURI);
            writer.Write("Update_Proxy_Port", UpdateProxyPort);
            writer.Write("Update_Use_Proxy", UpdateUseProxy);


            //writer.Write("Phantom_Dev_EnableResize", Phantom_Dev_EnableResize);

        }