Beispiel #1
0
        private static T ConverterInserter <T>(MDE.InjectorElement me, IMachineElement parent) where T : InjectorBaseElementViewModel, new()
        {
            var vm = Convert <T>(me, parent);

            vm.InserterId = me.InserterId;
            vm.Position   = new Base.Point()
            {
                X = me.Position.X, Y = me.Position.Y, Z = me.Position.Z
            };
            vm.Direction     = me.Direction;
            vm.InserterColor = me.InserterColor;

            return(vm);
        }
Beispiel #2
0
 private static InjectorElementViewModel Convert(MDE.InjectorElement inj, IMachineElement parent) => ConverterInserter <InjectorElementViewModel>(inj, parent);