private void timer1_Tick(object sender, EventArgs e) { PasswordDTO password = (PasswordDTO)cbApplication.SelectedItem; StringSendKeys(password.UserName); SendKeys.Send("{TAB}"); StringSendKeys(password.Password); SendKeys.Send("{ENTER}"); timer1.Stop(); }
public frmPassword(string appCode) { InitializeComponent(); if (!string.IsNullOrEmpty(appCode)) { psw = Program.DataAccess.Passwords.FirstOrDefault(c => c.ApplicationCode == appCode); } else { Close(); } }
public frmPassword() { InitializeComponent(); psw = new PasswordDTO(); }