Benglin/Dynamo — pull request #247 by vmoyseenko (2014-12-16 08:25:42+00:00)
Title: Import library doesn't add root category to library nodes tree

#### Purpose

1. Fix merge bug: Import library doesn't add root category to library nodes tree.
2. Make work with ViewModels in LibrarySearchView view & code.

#### Modifications

To fix bug were added event `CategoryBuilder.RootCategoriesCollectionChanged` were saved `CollectionChangedEventHandler` of `rootCategories`. We need to save it because in some functions we recreate `rootCategories`.

For second task I have just created property `SearchViewModel.SearchRootCategories` which exposes Model's `SearchRootCategories`.

#### Additional references

[MAGN-5677](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-5677) DUI: Import library doesn't add root category to library nodes tree
[MAGN-5667](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-5667) DUI: Make work with ViewModels in LibrarySearchView view & code

This PR should be merged after https://github.com/Benglin/Dynamo/pull/246.

#### Reviewers

@Benglin, please, take a look.