private void frmLogin_Load(object sender, EventArgs e) { txtNome.Text = winmanager.Globals.connSelf.Nome; txtUsername.Text = winmanager.Globals.connSelf.Username; if (winmanager.Globals.connSelf.Password.Length > 0) { txtPassword.Text = myAES.Decrypt(winmanager.Globals.connSelf.Password); } txtTelefono.Text = winmanager.Globals.connSelf.Telefono; txtCellulare.Text = winmanager.Globals.connSelf.Cellulare; txtMail.Text = winmanager.Globals.connSelf.Mail; chkUsaAudio.Checked = winmanager.Globals.connSelf.UsaAudio; chkUseProxy.Checked = JADA.Common.UseProxy; }
private void FormProxyLogin_Load(object sender, System.EventArgs e) { int iRet; StringBuilder szUsername = new StringBuilder(256), szPassword = new StringBuilder(256); iRet = JADA.Common.GetProxyCredentials(szUsername, szPassword); if (iRet == 0) { txtUsername.Text = szUsername.ToString(); if (szPassword.Length > 0) { txtPassword.Text = myAES.Decrypt(szPassword.ToString()); } } }