public void RemoveError(IAcError error) { if (!_errors.Contains(error)) return; _errors.Remove(error); if (Errors.Count == 0) { OnPropertyChanged(nameof(HasErrors)); } }
public void AddError(IAcError error) { if (HasError(error.Type) && !IsSeveralAllowed(error.Type)) return; _errors.Add(error); if (Errors.Count == 1) { OnPropertyChanged(nameof(HasErrors)); } }
protected AcErrorWrapper(IAcError baseError) { Target = baseError.Target; Category = baseError.Category; Type = baseError.Type; Message = baseError.Message; }
public void RemoveError(IAcError error) { if (!_errors.Contains(error)) { return; } _errors.Remove(error); if (Errors.Count == 0) { OnPropertyChanged(nameof(HasErrors)); CommandManager.InvalidateRequerySuggested(); } }
public void AddError(IAcError error) { if (HasError(error.Type) && !IsSeveralAllowed(error.Type)) { return; } _errors.Add(error); if (Errors.Count == 1) { OnPropertyChanged(nameof(HasErrors)); CommandManager.InvalidateRequerySuggested(); } }
public AcEventError(KunosCareerEventObject ev, IAcError baseError) : base(baseError) { _ev = ev; _baseError = baseError; }
public override Task Run(IAcError error, IProgress <AsyncProgressEntry> progress, CancellationToken cancellation) { _action?.Invoke(error); return(Task.Delay(0, cancellation)); }
public override Task Run(IAcError error, IProgress <AsyncProgressEntry> progress, CancellationToken cancellation) { return(Run(new[] { error }, progress, cancellation)); }
public override Task Run(IAcError error, IProgress<AsyncProgressEntry> progress, CancellationToken cancellation) { return _progressAction != null ? _progressAction(error, cancellation) : _action(error); }
public abstract Task Run(IAcError error, IProgress <AsyncProgressEntry> progress, CancellationToken cancellation);
public abstract Task Run(IAcError error, IProgress<AsyncProgressEntry> progress, CancellationToken cancellation);
public override Task Run(IAcError error, IProgress <AsyncProgressEntry> progress, CancellationToken cancellation) { return(_progressAction != null?_progressAction(error, cancellation) : _action(error)); }