private void Model_PropertyChanged(object sender, PropertyChangedEventArgs e) { var propertyName = e.PropertyName; if ((propertyName == nameof(Model.SourcePath) && Model.SourcePath != null && !Model.HasPropertyErrors(nameof(Model.SourcePath)))) { FindFilesCommand.RaiseCanExecuteChanged(); } else if (propertyName == nameof(Model.DestinationPath) && Model.DestinationPath != null && !Model.HasPropertyErrors(nameof(Model.DestinationPath))) { FindFilesCommand.RaiseCanExecuteChanged(); CalculateNewMaxDestinationSize(); PreviouslyCopiedFileList = _serializationHelper.GetCopiedFileList(Model.DestinationPath); } }