public static IConvertingSettings GetConvertingSettingFromConfiguration() => new PersonInformation(Properties.Settings.Default.PersonSurname ?? String.Empty, Properties.Settings.Default.PersonName ?? String.Empty, Properties.Settings.Default.PersonPatronymic ?? String.Empty, ConverterDepartmentType.DepartmentStringToTypeOrUnknown(Properties.Settings.Default.PersonDepartment)). Map(personInformation => new ConvertingSettings(new SignatureLibrary(Properties.Settings.Default.PersonId, personInformation), (PdfNamingType)Properties.Settings.Default.PdfNamingType, (ColorPrintType)Properties.Settings.Default.ColorPrint, Properties.Settings.Default.UseDefaultSignature));
/// <summary> /// Получить функцию преобразования типа отдела в строку /// </summary> public static Func <DepartmentTypeApp, string> GetDepartmentTypeFunc() => departmentTypeApp => ConverterDepartmentType.DepartmentTypeToString(departmentTypeApp.FromApplication());