private void PerformDispose(bool disposing)
 {
     if (_component != null)
     {
         _component.SelectedNodeChanged -= OnComponentSelectedNodeChanged;
         _component = null;
     }
 }
		private void PerformDispose(bool disposing)
		{
			if (_component != null)
			{
				_component.SelectedNodeChanged -= OnComponentSelectedNodeChanged;
				_component = null;
			}
		}
        public ActionModelConfigurationComponentControl(IActionModelConfigurationComponent component)
        {
            InitializeComponent();

            _component = component;
            _component.SelectedNodeChanged += OnComponentSelectedNodeChanged;

            _actionModelTree.ShowToolbar   = true;
            _actionModelTree.Tree          = component.ActionModelTreeRoot;
            _actionModelTree.ToolbarModel  = component.ToolbarActionModel;
            _actionModelTree.MenuModel     = component.ContextMenuActionModel;
            _actionModelTree.ShowLines     = !component.EnforceFlatActionModel;
            _actionModelTree.ShowRootLines = !component.EnforceFlatActionModel;
            _actionModelTree.ShowPlusMinus = !component.EnforceFlatActionModel;

            this.OnComponentSelectedNodeChanged(null, null);
        }
		public ActionModelConfigurationComponentControl(IActionModelConfigurationComponent component)
		{
			InitializeComponent();

			_component = component;
			_component.SelectedNodeChanged += OnComponentSelectedNodeChanged;

			_actionModelTree.ShowToolbar = true;
			_actionModelTree.Tree = component.ActionModelTreeRoot;
			_actionModelTree.ToolbarModel = component.ToolbarActionModel;
			_actionModelTree.MenuModel = component.ContextMenuActionModel;
			_actionModelTree.ShowLines = !component.EnforceFlatActionModel;
			_actionModelTree.ShowRootLines = !component.EnforceFlatActionModel;
			_actionModelTree.ShowPlusMinus = !component.EnforceFlatActionModel;

			this.OnComponentSelectedNodeChanged(null, null);
		}