private void UpdateComponents(SAPSettings s) { txtSAPHost.Text = s.hostname; txtSAPUser.Text = s.user; txtSAPPassword.Text = CryptoSystem.Decrypt(s.password); txtSAPClient.Text = s.client; txtDevice.Text = s.device; }
public bool SaveSettings() { var s = new SAPSettings(); s.hostname = txtSAPHost.Text; s.user = txtSAPUser.Text; s.password = CryptoSystem.Encrypt(txtSAPPassword.Text); s.client = txtSAPClient.Text; s.device = txtDevice.Text; return(XMLConfigHandler.SaveConfig(s)); }