Esempio n. 1
0
        private void frmLogin_FormClosing(object sender, FormClosingEventArgs e)
        {
            Properties.Settings.Default.Username = Crypter.Encrypt(txtUsername.Text);
            Properties.Settings.Default.Password = Crypter.Encrypt(txtPasswort.Text);

            Properties.Settings.Default.Save();
        }
Esempio n. 2
0
        public frmLogin(MySqlWrapper SqlObj)
        {
            sql = SqlObj;

            InitializeComponent();

            if (Properties.Settings.Default.Username != string.Empty)
            {
                txtUsername.Text = Crypter.Decrypt(Properties.Settings.Default.Username);
                txtPasswort.Text = Crypter.Decrypt(Properties.Settings.Default.Password);
            }
        }