private void EditNoteExecute(object sender) { if (_isNameFieldChanged && !_ValidateNameField()) { return; } PasswordManager.EditPass(); IsFieldsChanged = false; _isNameFieldChanged = false; _StatusChange(Status, "Изменения сохранены"); }