Ejemplo n.º 1
0
        private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
        {
            if (CurrentlyDrawnWall != null)
            {
                CurrentlyDrawnWall.ModLastPoint(e.Location);
                DrawDesign();
            }
            if (MouseIsDown && listBox1.SelectedItem != null && SelectedButton == null)
            {
                var furniture = listBox1.SelectedItem as FurnitureData;
                furniture.x += e.Location.X - OriginalMousePosition.X;
                furniture.y += e.Location.Y - OriginalMousePosition.Y;

                OriginalMousePosition = e.Location;
                DrawDesign();
                FurnitureList.ResetBindings();
            }
        }