DynamoDS/Dynamo — pull request #1656 by Benglin (2014-05-14 07:35:02+00:00)
Title: Avoid returning focus to search box during CBN creation

Background
-----
Due to another [completely irrelevant change](https://github.com/Benglin/Dynamo/commit/54f7fa6bbe3ec964761dc886bdb442426bb1eb49), a ```Code Block Node``` can no longer be created through double-clicking. The focus was stolen, most probably as a result of calling ```AggregateUpstreamRenderPackages``` method, causing the ```Code Block Node``` to lose focus (and then disappear) right after double-clicking on the canvas.

This pull request also re-enables the preview icon for ```Code Block Node```.

Changes
-----
The following are the two changes in this pull request:
* ```StateMachine.HandleLeftButtonDown``` method now retains the focus in CBN creation scenario
* ```NodeViewModel.ShouldShowGlyphBar``` returns ```true``` if either one of the following condition is true:
* ```NodeViewModel.IsPreviewInsetVisible``` property is ```true```
* ```NodeViewModel.ArgumentLacing``` is not set to ```LacingStrategy.Disabled```