private void Window_Loaded(object sender, RoutedEventArgs e) { this.textBox_systemGuid.Text = systemGuid; this.textBox_userName.Text = userName; if (!string.IsNullOrEmpty(password)) { this.passwordBox_password.Password = Class_Encrypt.DecryptDES(password); } }
public void Login(string userName, string password) { try { UserInfo userInfo_login = UserInfo.DefaultUser; if (!string.IsNullOrEmpty(userName)) { userInfo_login = new UserInfo(userName); if (!string.IsNullOrEmpty(password)) { userInfo_login.Password = Class_Encrypt.DecryptDES(password); } } controller.Logon(userInfo_login); } finally { } }