/* * Eventhandler is invoked e. g. in case of generating a new password * in PwEntryForm with password being visible */ private void ColoredSecureTextBoxChanged(object sender, EventArgs e) { if (UseSystemPasswordChar) { return; } if (m_text == null) { return; } //password is shown in plaintext already => no need to protect anything string pw = TextEx.ReadString(); if (pw != m_text.Text) { PluginDebug.AddInfo(Name + " ColoredSecureTextBoxChanged - Text changed"); m_text.Text = pw; } else { PluginDebug.AddInfo(Name + " ColoredSecureTextBoxChanged - Text not changed"); } }