/// <summary> /// Отобразить сообщение /// </summary> public void ShowError(IErrorCommon errorConverting) => errorConverting?. Map(error => new List <string>() { "Ошибка | " + ConverterErrorType.ErrorTypeToString(error.ErrorConvertingType), errorConverting.Description, errorConverting.Exception?.Message }). Map(messages => String.Join("\n", messages.Where(message => !String.IsNullOrWhiteSpace(message)))). Map(messageText => { Console.WriteLine(messageText); return(Unit.Value); }). Void(_ => _accessService.SetLastTimeOperationByNow());
/// <summary> /// Сообщение об ошибке /// </summary> public async Task ShowError(IErrorCommon fileError) => await $"Тип ошибки: {ConverterErrorType.ErrorTypeToString(fileError.ErrorConvertingType)}.\nОписание: {fileError.Description}". VoidBindAsync(DialogFactory.GetErrorDialog);