private void Password_Box_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { Войти_Button.PerformClick(); } }
private void Authorization_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { Войти_Button.PerformClick(); } }