public static void writeValues() { reg.Write("windowsLogin", Convert.ToInt32(windowsLogin)); reg.Write("serverLogin", Convert.ToInt32(serverLogin)); reg.Write("dbType", dbType); reg.Write("SqlHost", SqlHost); reg.Write("SqlDatabase", SqlDatabase); reg.Write("SqlUsername", SqlUsername); reg.Write("SqlPassword", Cryptho.Encrypt(SqlPassword)); reg.Write("loggingLevel", loggingLevel); }
public static void loadValues() { windowsLogin = ((int)reg.Read("windowsLogin", 1) == 1); serverLogin = ((int)reg.Read("serverLogin", 1) == 1); dbType = (string)reg.Read("dbType", "MSSQL"); SqlHost = (string)reg.Read("SqlHost", "localhost"); SqlDatabase = (string)reg.Read("SqlDatabase", "email2sms"); SqlUsername = (string)reg.Read("SqlUsername", "root"); SqlPassword = Cryptho.Decrypt((string)reg.Read("SqlPassword", Cryptho.Encrypt("adminadmin"))); loggingLevel = (string)reg.Read("loggingLevel", "Normal"); }