public static ToolHolderViewModel UpdateFromModel(this ToolHolderViewModel vm, ToolHolder m) { vm.ToolHolderId = m.Id; vm.Position = new Point3D(m.Position.X, m.Position.Y, m.Position.Z); vm.Direction = new Vector3D(m.Direction.X, m.Direction.Y, m.Direction.Z); return(vm); }
private static void UpdateModel(ToolHolder m, ToolHolderViewModel vm) { m.Id = vm.Id; m.Position = new MachineModels.Models.Vector() { X = vm.Position.X, Y = vm.Position.Y, Z = vm.Position.Z }; m.Direction = new MachineModels.Models.Vector() { X = vm.Direction.X, Y = vm.Direction.Y, Z = vm.Direction.Z }; }
private static void UpdateViewModel(ToolHolderViewModel vm, ToolHolder m) { vm.Id = m.Id; vm.Position = new System.Windows.Media.Media3D.Point3D() { X = m.Position.X, Y = m.Position.Y, Z = m.Position.Z }; vm.Direction = new System.Windows.Media.Media3D.Vector3D() { X = m.Direction.X, Y = m.Direction.Y, Z = m.Direction.Z }; }