Example #1
0
 private void Remember(string email, string pass)
 {
     Settings.Default.Email = email;
     if (!string.IsNullOrWhiteSpace(pass))
     {
         try
         {
             Settings.Default.Pcrypt = Encrypter.Encrypt(pass, "XnJCh0H7dLFoP23dx7");
         }
         catch
         {
             Settings.Default.Pcrypt = "";
         }
     }
     else
     {
         Settings.Default.Pcrypt = "";
     }
     Settings.Default.AutoStart = autoStartCheckbox.Checked;
     Settings.Default.Save();
 }