private void textBoxPublicKey_TextChanged(object sender, EventArgs e) { if (CommonHelpers.CheckKeys(textBoxPublicKey.Text, textBoxPrivateKey.Text)) { textBoxPrivateKey.BackColor = Color.Honeydew; textBoxPublicKey.BackColor = Color.Honeydew; } else { textBoxPrivateKey.BackColor = Color.MistyRose; textBoxPublicKey.BackColor = Color.MistyRose; } }