Beispiel #1
0
        //when settings changed
        private void settingsChanged(object sender, RoutedEventArgs e)
        {

            CheckBox item = (CheckBox)sender;
            //encryption

            SteamTwoProperties.jsonSetting.encryptedSetting = (bool)enableEncryption.IsChecked;
            if (SteamTwoProperties.jsonSetting.encryptedSetting == true && item.Name.ToString().Equals("enableEncryption"))
            {
                changeKeyClicked();
            }

            //auto start
            SteamTwoProperties.jsonSetting.autoStartSetting = (bool)autoStart.IsChecked;
            if (SteamTwoProperties.jsonSetting.autoStartSetting == true && item.Name.ToString().Equals("autoStart"))
            {
                createRegKey();
            }
            else if (SteamTwoProperties.jsonSetting.autoStartSetting != true && item.Name.ToString().Equals("autoStart"))
            {
                deleteRegKey();
            }
            SteamTwoProperties.jsonSetting.forwardCheckSetting = (bool)Forward2.IsChecked;
            SteamTwoProperties.jsonSetting.autoLoginSetting = (bool)autoLogin.IsChecked;
            SteamTwoProperties.jsonSetting.badAttemptSetting = (bool)badAttempt.IsChecked;
            SteamTwoProperties.jsonSetting.multipleBotSetting = (bool)multipleBots.IsChecked;
            SteamTwoProperties.jsonSetting.copyPasswordSetting = (bool)copyPassword.IsChecked;
            SteamTwoProperties.jsonSetting.closeStemLaunchSetting = (bool)closeStemLaunch.IsChecked;
            SteamTwoProperties.jsonSetting.chatComSetting = (bool)chatCommandButton.IsChecked;
            SteamTwoProperties.jsonSetting.chatSetting = (bool)enableChat.IsChecked;
            SteamTwoProperties.jsonSetting.autoAddFriendSetting = (bool)autoAddFriends.IsChecked;
            SteamTwoProperties.jsonSetting.notifyOnMessageSetting = (bool)notifyOnMessage.IsChecked;
            SteamTwoProperties.updateSettingFile();
            updateGUI();
        }
Beispiel #2
0
 private void Forward_Click(object sender, RoutedEventArgs e)
 {
     GetInput FBTN = new GetInput();
     string var = FBTN.Show("Forward Messages", "Enter steamID (STEAM_0:0:00000000) of the account the below", false);
     FBTN.Close();
     SteamTwoProperties.jsonSetting.forwardSetting = var;
     SteamTwoProperties.updateSettingFile();
     updateGUI();
 }
Beispiel #3
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();
     }
 }
Beispiel #4
0
 private void SDALink(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.OpenFileDialog fd = new System.Windows.Forms.OpenFileDialog();
     if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         SteamTwoProperties.jsonSetting.SDALinkSetting = fd.FileName;
     }
     else
     {
         SteamTwoProperties.jsonSetting.SDALinkSetting = "";
     }
     SteamTwoProperties.updateSettingFile();
     updateGUI();
 }
Beispiel #5
0
 private void changeSteamLoc_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.OpenFileDialog fd = new System.Windows.Forms.OpenFileDialog();
     if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         SteamTwoProperties.jsonSetting.steamLocation = fd.FileName;
     }
     else
     {
         SteamTwoProperties.jsonSetting.steamLocation = "C:\\Program Files (x86)\\Steam\\Steam.exe";
     }
     SteamTwoProperties.updateSettingFile();
     updateGUI();
 }
Beispiel #6
0
 private void comboBoxLogin_DropDownClosed(object sender, EventArgs e)
 {
     SteamTwoProperties.jsonSetting.selectedAccountSetting = comboBoxLogin.Text;
     SteamTwoProperties.updateSettingFile();
     updateGUI();
 }
Beispiel #7
0
 private void Settings1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     SteamTwoProperties.updateSettingFile();
 }
Beispiel #8
0
 //reset settings
 private void resetSettings_Click(object sender, RoutedEventArgs e)
 {
     SteamTwoProperties.reset();
     SteamTwoProperties.updateSettingFile();
     updateGUI();
 }