Umbraco.UmbracoStudio.ToolWindows.ExplorerToolWindow.GetServiceHelper C# (CSharp) Méthode

GetServiceHelper() public méthode

public GetServiceHelper ( Type serviceType ) : object
serviceType System.Type
Résultat object
        public object GetServiceHelper(Type serviceType)
        {
            return base.GetService(serviceType);
        }

Usage Example

        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);
            }
        }