Exemplo n.º 1
0
        /// <summary>
        /// Finishes initializing component by registering with settings service
        /// </summary>
        public virtual void Initialize()
        {
            {
                var owner =
                    string.Format(
                        "{0}-{1}-TreeListView-Settings",
                        this,
                        TreeListView.Name);

                SettingsService.RegisterSettings(
                    SledUtil.GuidFromString(owner),
                    new BoundPropertyDescriptor(
                        TreeListView,
                        () => TreeListView.PersistedSettings,
                        owner,
                        null,
                        owner));
            }

            ControlHostService.RegisterControl(TreeListView, m_controlInfo, this);

            StandardEditCommands.Copying += StandardEditCommandsCopying;
            StandardEditCommands.Copied  += StandardEditCommandsCopied;

            if (!AllowDebugFreeze)
            {
                return;
            }

            DebugFreezeService.Freezing += DebugFreezeServiceFreezing;
            DebugFreezeService.Thawing  += DebugFreezeServiceThawing;
        }