Ejemplo n.º 1
0
 public void SaveConfigs()
 {
     if (!Directory.Exists(System.AppDomain.CurrentDomain.BaseDirectory + @"\Configs"))
     {
         Directory.CreateDirectory(System.AppDomain.CurrentDomain.BaseDirectory + @"\Configs");
     }
     TextWriter config_writer = new StreamWriter(Application.StartupPath + @"\Configs\" + SteamAuto.UserName + ".ini");
     {
         config_writer.WriteLine(settingfrm.comboBox1.SelectedItem.ToString());
         config_writer.WriteLine(SteamLibrary.Encrypt(settingfrm.PassTB.Text));
         config_writer.WriteLine(settingfrm.searchResTB.Text);
         config_writer.WriteLine("//");
         config_writer.Close();
     }
 }