private void ValidateInput(KeyEventArgs e, int valID, Type type, Control control, string value, string propertyName, string displayName) { if (!e.Key.Equals(Key.Enter) && !e.Key.Equals(Key.Escape)) { validationController.IsValidAttribute(valID, type, control, value, propertyName, displayName); EnableSaveButton(); EnableResetbutton(); } }