public PreviewHandler(PreviewData data, ContentFileProcessor contentFileProcessor, DefinitionFileProcessor definitionFileProcessor) { _previewDataModel = data; _contentFileProcessor = contentFileProcessor; _definitionFileProcessor = definitionFileProcessor; }
static void InitializeEngineHotKeyEngine() { deserializer = new DeserializerBuilder().Build(); contentFileProcessor = new ContentFileProcessor(resolver); definitionFileProcessor = new DefinitionFileProcessor(deserializer, resolver); printHandler = new PrintOnTransitionHandler(contentFileProcessor, printer); previewHandler = new PreviewHandler(previewData, contentFileProcessor, definitionFileProcessor); engine = BuildHotKeyGraphTraversalEngine(); engine.OnTransitionTo += printHandler.PrintContent; engine.OnTransitionTo += previewHandler.UpdatePreviewData; }
public PrintOnTransitionHandler(ContentFileProcessor fileProcessor, ContentPrinter printer) { _processor = fileProcessor; _printer = printer; }