Index: branches/HeuristicLab.BinPacking/PackingPlanVisualizations/3D/PackingGame.cs
===================================================================
--- branches/HeuristicLab.BinPacking/PackingPlanVisualizations/3D/PackingGame.cs	(revision 13032)
+++ branches/HeuristicLab.BinPacking/PackingPlanVisualizations/3D/PackingGame.cs	(revision 13161)
@@ -22,10 +22,11 @@
 using System;
 using SharpDX;
-using SharpDX.Toolkit;     
+using SharpDX.Direct3D11;
+using SharpDX.Toolkit;
 using SharpDX.Toolkit.Graphics;
 using SharpDX.Toolkit.Input;
 
 using ButtonStateDX = SharpDX.Toolkit.Input.ButtonState;
-using SharpDX.Direct3D11;
+
 
 namespace PackingPlanVisualizations {
@@ -33,5 +34,5 @@
 
 
-    #region Global Private Variables   
+    #region Global Private Variables
     private GraphicsDeviceManager graphicsDeviceManager;
     private PackingPlan3D control;
@@ -42,10 +43,10 @@
     private int selectedItemIndex = -1;
 
-    private BasicEffect basicEffect;      
+    private BasicEffect basicEffect;
     private Color backgroundColor { get; set; }
 
-    private CenteredContainer container;   
+    private CenteredContainer container;
     private MouseManager Mouse;
-    #endregion Global Private Variables     
+    #endregion Global Private Variables
 
     protected override void Dispose(bool disposeManagedResources) {
@@ -58,14 +59,14 @@
     public PackingGame(PackingPlan3D control)
       : base() {
-        this.control = control;
+      this.control = control;
       graphicsDeviceManager = new GraphicsDeviceManager(this);
       graphicsDeviceManager.PreferMultiSampling = true;
-      graphicsDeviceManager.PreparingDeviceSettings += 
-        (object sender, PreparingDeviceSettingsEventArgs e) => {           
+      graphicsDeviceManager.PreparingDeviceSettings +=
+        (object sender, PreparingDeviceSettingsEventArgs e) => {
           e.GraphicsDeviceInformation.PresentationParameters.MultiSampleCount = MSAALevel.X4;
           return;
         };
       var controlColor = Color.White;//System.Drawing.SystemColors.Control;
-      backgroundColor = new Color (controlColor.R,controlColor.G, controlColor.B, controlColor.A);
+      backgroundColor = new Color(controlColor.R, controlColor.G, controlColor.B, controlColor.A);
 
       Mouse = new MouseManager(this);
@@ -135,5 +136,5 @@
       //Primitive color
       basicEffect.AmbientLightColor = new Vector3(0.1f, 0.1f, 0.1f);
-      basicEffect.DiffuseColor = new Vector3(1.0f, 1.0f, 1.0f);
+      basicEffect.DiffuseColor = new Vector4(1.0f, 1.0f, 1.0f, 1.0f);
       basicEffect.SpecularColor = new Vector3(0.25f, 0.25f, 0.25f);
       basicEffect.SpecularPower = 5.0f;
@@ -204,5 +205,5 @@
       GraphicsDevice.Clear(backgroundColor);
 
-      worldMatrix = 
+      worldMatrix =
         Matrix.RotationY(MathUtil.DegreesToRadians(-currentViewAngle.X / 4)) *
         Matrix.RotationX(MathUtil.DegreesToRadians(currentViewAngle.Y / 4));
@@ -229,5 +230,5 @@
                 item.RenderShapeTriangles(GraphicsDevice);
               } else
-                item.RenderShapeLines(GraphicsDevice, new Color(0,0,0));
+                item.RenderShapeLines(GraphicsDevice, new Color(0, 0, 0));
             }
           }
@@ -235,5 +236,5 @@
       }
 
-      base.Draw(gameTime);        
+      base.Draw(gameTime);
     }
 
@@ -244,5 +245,5 @@
 
     protected override void Update(GameTime gameTime) {
-      computeMouseHandling();                                      
+      computeMouseHandling();
       base.Update(gameTime);
     }
@@ -263,10 +264,10 @@
     private void computeLeftMouseBtnHandling(MouseState mouseState) {
       //Left btn released
-      if (mouseState.Left.Equals(ButtonStateDX.Released) && mouseState.Left.Equals(previousMouseState.Left)) {
+      if (mouseState.LeftButton.Released && mouseState.LeftButton.Equals(previousMouseState.LeftButton)) {
         //Console.WriteLine("Released");
       }
 
       //Left btn pressed
-      else if (mouseState.Left.Equals(ButtonStateDX.Pressed) && mouseState.Left.Equals(previousMouseState.Left)) {
+      else if (mouseState.LeftButton.Pressed && mouseState.LeftButton.Equals(previousMouseState.LeftButton)) {
         currentViewAngle = new Vector2(
           viewAngleOnBtnRelease.X + mouseState.X - mousePositionOnBtnDown.X,
@@ -279,5 +280,5 @@
 
       //Left btn freshly pressed ==> ONLICK-EVENT
-      else if (mouseState.Left.Equals(ButtonStateDX.Pressed) && !previousMouseState.Left.Equals(ButtonStateDX.Pressed)) {
+      else if (mouseState.LeftButton.Pressed && !previousMouseState.LeftButton.Pressed) {
         Console.WriteLine("OnClick");
         PackingPlan3D native = (PackingPlan3D)Window.NativeWindow;
@@ -293,5 +294,5 @@
 
       //Left btn freshly released ==> ONRELEASE-EVENT
-      else if (mouseState.Left.Equals(ButtonStateDX.Released) && !previousMouseState.Left.Equals(ButtonStateDX.Released)) {
+      else if (mouseState.LeftButton.Released && !previousMouseState.LeftButton.Released) {
         Console.WriteLine("OnRelease");
         viewAngleOnBtnRelease = currentViewAngle;
