示例#1
0
        private static T ConverterInjector <T>(IInjectorElement me) where T : MDE.InjectorElement, new()
        {
            var vm = Convert <T>(me);

            vm.InserterId    = me.InserterId;
            vm.Position      = me.Position.Convert();
            vm.Direction     = me.Direction.Convert();
            vm.InserterColor = me.InserterColor.Convert();

            return(vm);
        }
示例#2
0
 private static MDE.MachineElement Convert(IInjectorElement e) => ConverterInjector <MDE.InjectorElement>(e);
示例#3
0
 public InserterToSinkTransformer(IInsertionsSink sink, IInjectorElement injector)
 {
     _sink     = sink;
     _injector = injector;
 }
示例#4
0
 public IInserterToSinkTransformer GetTransformer(IInsertionsSink sink, IInjectorElement injector) => new InserterToSinkTransformer(sink, injector);