Save() public method

public Save ( ) : void
return void
Exemplo n.º 1
0
        public static void Testing_SetActiveDatabase(string host, int port, string projectName, string dbName, string user, string pwd)
        {
            PListConfig config = new PListConfig("Library/ServerPreferences.plist");

            config["Maint Server"]              = host;
            config["Maint UserName"]            = user;
            config["Maint database name"]       = dbName;
            config["Maint port number"]         = port.ToString();
            config["Maint project name"]        = projectName;
            config["Maint Password"]            = string.Empty;
            config["Maint settings type"]       = "manual";
            config["Maint Timeout"]             = "5";
            config["Maint Connection Settings"] = string.Empty;
            config.Save();
        }
Exemplo n.º 2
0
		public static void Testing_SetActiveDatabase(string host, int port, string projectName, string dbName, string user, string pwd)
		{
			PListConfig pListConfig = new PListConfig("Library/ServerPreferences.plist");
			pListConfig["Maint Server"] = host;
			pListConfig["Maint UserName"] = user;
			pListConfig["Maint database name"] = dbName;
			pListConfig["Maint port number"] = port.ToString();
			pListConfig["Maint project name"] = projectName;
			pListConfig["Maint Password"] = string.Empty;
			pListConfig["Maint settings type"] = "manual";
			pListConfig["Maint Timeout"] = "5";
			pListConfig["Maint Connection Settings"] = string.Empty;
			pListConfig.Save();
		}