private void TrackSelection(string nodeType, int id)
{
ShowPropertiesFrame();
if (_mySelContainer == null)
{
_mySelContainer = new SelectionContainer();
}
_mySelItems = new ArrayList();
if (string.IsNullOrEmpty(nodeType) == false && id != default(int))
{
var model = UmbracoApplicationContext.Current.GetPropertiesModel(nodeType, id);
_mySelItems.Add(model);
}
_mySelContainer.SelectedObjects = _mySelItems;
//Must use the GetService of the Window to get the ITrackSelection reference
var track = _parentWindow.GetServiceHelper(typeof(STrackSelection)) as ITrackSelection;
if (track != null)
{
track.OnSelectChange(_mySelContainer);
}
}