Exemple #1
0
        public Settings()
        {
            st = this;
            SettingJson sj = new SettingJson();

            if (sj != null)
            {
                list = sj.WriteSettings();
            }
        }
Exemple #2
0
 //read settings from setting files
 public static void readSettingFile()
 {
     try
     {
         var JsonData = JsonConvert.DeserializeObject<SettingJson>(File.ReadAllText(SETTING_FILE));
         jsonSetting = JsonData;
     }
     catch (Exception)
     {
         SteamTwoProperties.reset();
         SteamTwoProperties.updateSettingFile();
     }
 }
Exemple #3
0
 public static void reset()
 {
     jsonSetting = new SettingJson()
     {
         encryptedSetting       = false,
         autoAddFriendSetting   = false,
         chatComSetting         = false,
         encryptedKeySetting    = "FteUuLPNgH2K7YjGhHbPGw==",
         closeStemLaunchSetting = false,
         alwayRunSetting        = false,
         copyPasswordSetting    = false,
         multipleBotSetting     = false,
         badAttemptSetting      = true,
         chatSetting            = false,
         autoStartSetting       = false,
         autoLoginSetting       = false
     };
 }
Exemple #4
0
 //reset resstings
 public static void reset()
 {
     jsonSetting = new SettingJson()
     {
         encryptedSetting = false,
         autoAddFriendSetting = false,
         chatComSetting = false,
         encryptedKeySetting = "FteUuLPNgH2K7YjGhHbPGw==",
         closeStemLaunchSetting = false,
         copyPasswordSetting = false,
         multipleBotSetting = false,
         badAttemptSetting = true,
         chatSetting = false,
         autoStartSetting = false,
         autoLoginSetting = false,
         notifyOnMessageSetting = false,
         SDALinkSetting = "",
         selectedAccountSetting = "",
         forwardCheckSetting = false,
         forwardSetting = "",
         steamLocation = "C:\\Program Files (x86)\\Steam\\Steam.exe"
     };
 }