/* ----------------------------------------------------------------- */ /// /// ResolveDependencies /// /// <summary> /// Resolves dependencies of the specified configuration. /// </summary> /// /* ----------------------------------------------------------------- */ private void ResolveDependencies(DeviceConfig dest) => new DeviceConfigResolver( dest, Printer.GetElements(), PrinterDriver.GetElements(), PortMonitor.GetElements() ).Invoke();
/* ----------------------------------------------------------------- */ /// /// Convert /// /// <summary> /// Creates a collection of the printer drivers from the specified /// configuration. /// </summary> /// /// <param name="src">Printer driver configuration.</param> /// /// <returns>Collection of printer drivers.</returns> /// /* ----------------------------------------------------------------- */ public static IEnumerable <PrinterDriver> Convert(this IEnumerable <PrinterDriverConfig> src) => src.Convert(PrinterDriver.GetElements());