private void loadConfig() { acBrMail.ConfigLer(); txtNome.Text = acBrMail.ConfigLerValor <string>(ACBrSessao.Email, "Nome"); txtEmail.Text = acBrMail.ConfigLerValor <string>(ACBrSessao.Email, "Conta"); txtUsuario.Text = acBrMail.ConfigLerValor <string>(ACBrSessao.Email, "Usuario"); txtSenha.Text = acBrMail.ConfigLerValor <string>(ACBrSessao.Email, "Senha"); txtHost.Text = acBrMail.ConfigLerValor <string>(ACBrSessao.Email, "Servidor"); nudPorta.Value = acBrMail.ConfigLerValor <int>(ACBrSessao.Email, "Porta"); ckbSSL.Checked = acBrMail.ConfigLerValor <bool>(ACBrSessao.Email, "SSL"); ckbTLS.Checked = acBrMail.ConfigLerValor <bool>(ACBrSessao.Email, "TLS"); }
private void LoadConfig() { acBrMail.ConfigLer(); txtNome.Text = acBrMail.Config.Nome; txtEmail.Text = acBrMail.Config.Conta; txtUsuario.Text = acBrMail.Config.Usuario; txtSenha.Text = acBrMail.Config.Senha; txtHost.Text = acBrMail.Config.Servidor; nudPorta.Text = acBrMail.Config.Porta; ckbSSL.Checked = acBrMail.Config.SSL; ckbTLS.Checked = acBrMail.Config.TLS; }