Exemplo n.º 1
0
        public IResourceList GetChildResources(ResourceTreeView resourceTree, IResource parent)
        {
            IResourceList result = null;

            if (parent.Type == "Workspace")
            {
                result = parent.GetLinksToLive(null, "InWorkspace").Union(
                    parent.GetLinksToLive(null, "InWorkspaceRecursive"));
                result.Sort(new SortSettings(Core.Props.Name, true));
            }
            else
            {
                // if any of our parents has been added recursively, return our children
                // as the child list
                IResource nextParent = parent;
                while (nextParent != null)
                {
                    if (nextParent.HasLink("InWorkspaceRecursive", _currentWorkspace))
                    {
                        IResourceList excludedResources = _currentWorkspace.GetLinksOfTypeLive(null, "ExcludeFromWorkspace");
                        result = parent.GetLinksToLive(null, _tvInWorkspace.ParentProperty).Minus(excludedResources);
                        string sortProps = Core.ResourceTreeManager.GetResourceNodeSort(parent);
                        if (sortProps != null)
                        {
                            result.Sort(sortProps);
                        }
                        break;
                    }
                    nextParent = nextParent.GetLinkProp(_tvInWorkspace.ParentProperty);
                }
            }

            if (result != null)
            {
                IResourceList filterList = null;
                foreach (string resType in _resourceTypes)
                {
                    if (_workspaceManager.GetWorkspaceResourceType(resType) != WorkspaceResourceType.None)
                    {
                        filterList = Core.ResourceStore.GetAllResourcesLive(resType).Union(filterList, true);
                    }
                }
                result = result.Intersect(filterList, true);
                return(result);
            }
            return(Core.ResourceStore.EmptyResourceList);
        }
Exemplo n.º 2
0
        [SetUp] public void SetUp()
        {
            _core     = new TestCore();
            _storage  = _core.ResourceStore;
            _treeView = new ResourceTreeView();

            _resourceTreeManager = _core.ResourceTreeManager as ResourceTreeManager;

            _root = _resourceTreeManager.GetRootForType("Folder");
            _treeView.CreateControl();

            _storage.PropTypes.Register("FirstName", PropDataType.String);
            _storage.ResourceTypes.Register("Person", "FirstName");
            _storage.ResourceTypes.Register("Folder", "Name", ResourceTypeFlags.ResourceContainer);
            _propParent = _storage.PropTypes.Register("Parent", PropDataType.Link, PropTypeFlags.DirectedLink);

            _treeView.ParentProperty = _propParent;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1                  = new System.Windows.Forms.Label();
     this._treeView               = new JetBrains.Omea.GUIControls.ResourceTreeView();
     this._syncMailCategory       = new JetBrains.Omea.GUIControls.CheckBoxSettingEditor();
     this._chkShowExcludedFolders = new JetBrains.Omea.GUIControls.CheckBoxSettingEditor();
     btnSelAll   = new Button();
     btnUnselAll = new Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Location  = new System.Drawing.Point(0, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(284, 88);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Select the Outlook folders you would like to access from Omea. Mail in folders yo" +
                             "u do not select will not be indexed.";
     //
     // _treeView
     //
     this._treeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this._treeView.CheckBoxes        = true;
     this._treeView.CheckedSetValue   = 0;
     this._treeView.CheckedUnsetValue = 1;
     this._treeView.DoubleBuffer      = false;
     this._treeView.ImageIndex        = -1;
     this._treeView.Location          = new System.Drawing.Point(0, 88);
     this._treeView.MultiSelect       = false;
     this._treeView.Name                  = "_treeView";
     this._treeView.NodePainter           = null;
     this._treeView.ParentProperty        = 0;
     this._treeView.ResourceChildProvider = null;
     this._treeView.SelectedImageIndex    = -1;
     this._treeView.SelectedNodes         = new System.Windows.Forms.TreeNode[0];
     this._treeView.ShowContextMenu       = false;
     this._treeView.ShowRootResource      = false;
     this._treeView.Size                  = new System.Drawing.Size(200, 92);
     this._treeView.TabIndex              = 4;
     this._treeView.ThreeStateCheckboxes  = false;
     this._treeView.AfterCheck           += new System.Windows.Forms.TreeViewEventHandler(this.OnAfterCheck);
     //
     // _syncMailCategory
     //
     this._syncMailCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
     this._syncMailCategory.Changed     = false;
     this._syncMailCategory.FlatStyle   = System.Windows.Forms.FlatStyle.System;
     this._syncMailCategory.InvertValue = false;
     this._syncMailCategory.Location    = new System.Drawing.Point(4, 180);
     this._syncMailCategory.Name        = "_syncMailCategory";
     this._syncMailCategory.Size        = new System.Drawing.Size(272, 24);
     this._syncMailCategory.TabIndex    = 19;
     this._syncMailCategory.Tag         = "";
     this._syncMailCategory.Text        = "&Synchronize categories for mail";
     //
     // btnSelAll
     //
     this.btnSelAll.Anchor    = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.btnSelAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSelAll.Location  = new System.Drawing.Point(210, 88);
     this.btnSelAll.Text      = "Select All";
     this.btnSelAll.Name      = "btnSelAll";
     this.btnSelAll.Size      = new System.Drawing.Size(75, 24);
     this.btnSelAll.Click    += new EventHandler(btnSelAll_Click);
     this.btnSelAll.TabIndex  = 2;
     //
     // btnUnselAll
     //
     this.btnUnselAll.Anchor    = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.btnUnselAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnUnselAll.Location  = new System.Drawing.Point(210, 118);
     this.btnUnselAll.Text      = "Unselect All";
     this.btnUnselAll.Name      = "btnUnselAll";
     this.btnUnselAll.Size      = new System.Drawing.Size(75, 24);
     this.btnUnselAll.Click    += new EventHandler(btnUnselAll_Click);
     this.btnUnselAll.TabIndex  = 3;
     //
     // _chkShowExcludedFolders
     //
     this._chkShowExcludedFolders.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this._chkShowExcludedFolders.Changed     = false;
     this._chkShowExcludedFolders.InvertValue = false;
     this._chkShowExcludedFolders.Location    = new System.Drawing.Point(4, 204);
     this._chkShowExcludedFolders.Name        = "_chkShowExcludedFolders";
     this._chkShowExcludedFolders.Size        = new System.Drawing.Size(272, 24);
     this._chkShowExcludedFolders.TabIndex    = 20;
     this._chkShowExcludedFolders.Text        = "Show &excluded folders";
     //
     // OutlookOptionsPane_IgnoredFolders
     //
     this.Controls.Add(this._chkShowExcludedFolders);
     this.Controls.Add(this._syncMailCategory);
     this.Controls.Add(this.btnSelAll);
     this.Controls.Add(this.btnUnselAll);
     this.Controls.Add(this._treeView);
     this.Controls.Add(this.label1);
     this.Name = "OutlookOptionsPane_IgnoredFolders";
     this.Size = new System.Drawing.Size(284, 232);
     this.ResumeLayout(false);
 }
Exemplo n.º 4
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            _btnNewCategory       = new System.Windows.Forms.Button();
            _categoryTree         = new JetBrains.Omea.GUIControls.ResourceTreeView();
            _btnOk                = new System.Windows.Forms.Button();
            _btnCancel            = new System.Windows.Forms.Button();
            _btnDeleteCategory    = new System.Windows.Forms.Button();
            _btnRenameCategory    = new System.Windows.Forms.Button();
            _btnCheckAsPrevious   = new Button();
            _lblCategoriesFor     = new Label();
            _lblResource          = new JetBrains.Omea.GUIControls.ResourceLinkLabel();
            _lblPrevCats          = new Label();
            _chkFilterByWorkspace = new System.Windows.Forms.CheckBox();

            SuspendLayout();
            //
            // _lblCategoriesFor
            //
            this._lblCategoriesFor.AutoSize  = true;
            this._lblCategoriesFor.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._lblCategoriesFor.Location  = new System.Drawing.Point(4, 6);
            this._lblCategoriesFor.Name      = "_lblCategoriesFor";
            this._lblCategoriesFor.Size      = new System.Drawing.Size(74, 17);
            this._lblCategoriesFor.TabIndex  = 6;
            this._lblCategoriesFor.Text      = "Categories for";
            //
            // _lblResource
            //
            this._lblResource.Anchor                   = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this._lblResource.ClickableLink            = false;
            this._lblResource.ExecuteDoubleClickAction = false;
            this._lblResource.LinkOwnerResource        = null;
            this._lblResource.LinkType                 = 0;
            this._lblResource.Location                 = new System.Drawing.Point(84, 4);
            this._lblResource.Name        = "_lblResource";
            this._lblResource.PostfixText = "";
            this._lblResource.Resource    = null;
            this._lblResource.ShowIcon    = true;
            this._lblResource.Size        = new System.Drawing.Size(23, 20);
            this._lblResource.TabIndex    = 7;
            //
            // _categoryTree
            //
            this._categoryTree.AllowDrop = true;
            this._categoryTree.Anchor    = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                  | System.Windows.Forms.AnchorStyles.Left)
                                                                                 | System.Windows.Forms.AnchorStyles.Right)));
            this._categoryTree.DoubleBuffer          = false;
            this._categoryTree.DropOnEmpty           = true;
            this._categoryTree.HideSelection         = false;
            this._categoryTree.ImageIndex            = -1;
            this._categoryTree.LabelEdit             = true;
            this._categoryTree.Location              = new System.Drawing.Point(8, 28);
            this._categoryTree.MultiSelect           = false;
            this._categoryTree.Name                  = "_categoryTree";
            this._categoryTree.NodePainter           = null;
            this._categoryTree.ParentProperty        = 0;
            this._categoryTree.ResourceChildProvider = null;
            this._categoryTree.SelectedImageIndex    = -1;
            this._categoryTree.SelectedNodes         = new System.Windows.Forms.TreeNode[0];
            this._categoryTree.ShowRootResource      = false;
            this._categoryTree.Size                  = new System.Drawing.Size(156, 216);
            this._categoryTree.TabIndex              = 0;
            this._categoryTree.ThreeStateCheckboxes  = false;
            this._categoryTree.ResourceDrop         += new JetBrains.Omea.GUIControls.ResourceDragEventHandler(this._categoryTree_ResourceDrop);
            this._categoryTree.ResourceDragOver     += new JetBrains.Omea.GUIControls.ResourceDragEventHandler(this._categoryTree_ResourceDragOver);
            this._categoryTree.AfterSelect          += new System.Windows.Forms.TreeViewEventHandler(this._categoryTree_AfterSelect);
            this._categoryTree.ResourceAdded        += new System.Windows.Forms.TreeViewEventHandler(this._categoryTree_ResourceAdded);
            this._categoryTree.AfterLabelEdit       += new System.Windows.Forms.NodeLabelEditEventHandler(this.OnCategoryLabelEdit);
            this._categoryTree.AfterThreeStateCheck += new ThreeStateCheckEventHandler(_categoryTree_AfterThreeStateCheck);
            //
            // _btnNewCategory
            //
            this._btnNewCategory.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this._btnNewCategory.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._btnNewCategory.Location  = new System.Drawing.Point(172, 28);
            this._btnNewCategory.Name      = "_btnNewCategory";
            this._btnNewCategory.TabIndex  = 1;
            this._btnNewCategory.Text      = "&New...";
            this._btnNewCategory.Click    += new System.EventHandler(this.OnAddCategory);
            //
            // _btnDeleteCategory
            //
            this._btnDeleteCategory.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this._btnDeleteCategory.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._btnDeleteCategory.Location  = new System.Drawing.Point(172, 57);
            this._btnDeleteCategory.Name      = "_btnDeleteCategory";
            this._btnDeleteCategory.TabIndex  = 2;
            this._btnDeleteCategory.Text      = "&Delete";
            this._btnDeleteCategory.Click    += new System.EventHandler(this.OnDeleteCategory);
            //
            // _btnRenameCategory
            //
            this._btnRenameCategory.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this._btnRenameCategory.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._btnRenameCategory.Location  = new System.Drawing.Point(172, 86);
            this._btnRenameCategory.Name      = "_btnRenameCategory";
            this._btnRenameCategory.TabIndex  = 3;
            this._btnRenameCategory.Text      = "&Rename";
            this._btnRenameCategory.Click    += new System.EventHandler(this.OnRenameCategoryClick);
            //
            // _btnCheckAsPrevious
            //
            _btnCheckAsPrevious.Anchor    = (AnchorStyles.Top | AnchorStyles.Right);
            _btnCheckAsPrevious.FlatStyle = FlatStyle.System;
            _btnCheckAsPrevious.Location  = new Point(172, 132);
            _btnCheckAsPrevious.Name      = "_btnCheckAsPrevious";
            _btnCheckAsPrevious.TabIndex  = 4;
            _btnCheckAsPrevious.Visible   = false;
            _btnCheckAsPrevious.Text      = "&Check As";
            _btnCheckAsPrevious.Click    += new System.EventHandler(OnCheckAsPreviousCaseClick);
            //
            // _lblPrevCats
            //
            _lblPrevCats.Anchor    = (AnchorStyles.Top | AnchorStyles.Right);
            _lblPrevCats.AutoSize  = true;
            _lblPrevCats.FlatStyle = System.Windows.Forms.FlatStyle.System;
            _lblPrevCats.Location  = new System.Drawing.Point(172, 158);
            _lblPrevCats.Name      = "_lblPrevCats";
            _lblPrevCats.Size      = new System.Drawing.Size(80, 17);
            _lblPrevCats.TabStop   = false;
            _lblPrevCats.Text      = "Previous:";
            //
            // _chkFilterByWorkspace
            //
            this._chkFilterByWorkspace.FlatStyle       = System.Windows.Forms.FlatStyle.System;
            this._chkFilterByWorkspace.Location        = new System.Drawing.Point(8, 224);
            this._chkFilterByWorkspace.Name            = "_chkFilterByWorkspace";
            this._chkFilterByWorkspace.Size            = new System.Drawing.Size(200, 20);
            this._chkFilterByWorkspace.TabIndex        = 8;
            this._chkFilterByWorkspace.Text            = "Filter non-workspace categories";
            this._chkFilterByWorkspace.Visible         = false;
            this._chkFilterByWorkspace.Checked         = _filterCheckState;
            this._chkFilterByWorkspace.Anchor          = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
            this._chkFilterByWorkspace.CheckedChanged += new EventHandler(_chkFilterByWorkspace_CheckedChanged);
            //
            // _btnOk
            //
            this._btnOk.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this._btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
            this._btnOk.FlatStyle    = System.Windows.Forms.FlatStyle.System;
            this._btnOk.Location     = new System.Drawing.Point(88, 254);
            this._btnOk.Name         = "_btnOk";
            this._btnOk.TabIndex     = 5;
            this._btnOk.Text         = "OK";
            this._btnOk.Click       += new System.EventHandler(this._btnOk_Click);
            //
            // _btnCancel
            //
            this._btnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this._btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this._btnCancel.FlatStyle    = System.Windows.Forms.FlatStyle.System;
            this._btnCancel.Location     = new System.Drawing.Point(172, 254);
            this._btnCancel.Name         = "_btnCancel";
            this._btnCancel.TabIndex     = 5;
            this._btnCancel.Text         = "Cancel";
            //
            // CategoryEditor
            //
            this.AcceptButton      = this._btnOk;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
            this.CancelButton      = this._btnCancel;
            this.ClientSize        = new System.Drawing.Size(256, 287);
            this.Controls.Add(this._lblResource);
            this.Controls.Add(this._lblCategoriesFor);
            this.Controls.Add(this._btnNewCategory);
            this.Controls.Add(this._btnRenameCategory);
            this.Controls.Add(this._btnDeleteCategory);
            this.Controls.Add(_btnCheckAsPrevious);
            this.Controls.Add(_lblPrevCats);
//            this.Controls.Add( _boxPrevCats );
            this.Controls.Add(this._btnCancel);
            this.Controls.Add(this._btnOk);
            this.Controls.Add(this._categoryTree);
            this.Controls.Add(this._chkFilterByWorkspace);
            this.Name = "CategoryEditor";
            this.Text = "Assign Categories";

            if (_wspFilter != null)
            {
                _categoryTree.Height          = _categoryTree.Height - 30;
                _chkFilterByWorkspace.Visible = true;

                if (_chkFilterByWorkspace.Checked)
                {
                    _categoryTree.AddNodeFilter(_wspFilter);
                }
            }

            this.ResumeLayout(false);
        }
Exemplo n.º 5
0
        private void InitializeComponent()
        {
            this._treeFeeds = new ResourceTreeView();
            this._btnOK     = new System.Windows.Forms.Button();
            this._btnCancel = new System.Windows.Forms.Button();
            this.SuspendLayout();
            //
            // _treeFeeds
            //
            this._treeFeeds.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                            | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
            this._treeFeeds.Location = new System.Drawing.Point(8, 8);
            this._treeFeeds.Size     = new System.Drawing.Size(284, 422);
            this._treeFeeds.TabIndex = 1;
            this._treeFeeds.Name     = "_treeFeeds";

            this._treeFeeds.DoubleBuffer             = false;
            this._treeFeeds.ExecuteDoubleClickAction = false;
            this._treeFeeds.HideSelection            = false;
            this._treeFeeds.ImageIndex            = -1;
            this._treeFeeds.LabelEdit             = false;
            this._treeFeeds.NodePainter           = null;
            this._treeFeeds.ResourceChildProvider = null;
            this._treeFeeds.SelectedImageIndex    = -1;
            this._treeFeeds.SelectedNodes         = new System.Windows.Forms.TreeNode[0];
            this._treeFeeds.ShowRootResource      = true;
            this._treeFeeds.ThreeStateCheckboxes  = false;
            this._treeFeeds.FullRowSelect         = false;
            this._treeFeeds.CheckBoxes            = false;
            this._treeFeeds.MultiSelect           = false;
            this._treeFeeds.ShowContextMenu       = false;
            this._treeFeeds.DoubleClick          += new System.EventHandler(this._btnOK_Click);
            this._treeFeeds.RootResource          = RSSPlugin.RootFeedGroup;
            this._treeFeeds.ParentProperty        = Core.Props.Parent;
            this._treeFeeds.AddNodeFilter(new TitleGroupPane.FeedGroupNodeFilter());
            this._treeFeeds.TreeCreated += new EventHandler(OnTreeCreated);
            this._treeFeeds.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.OnFolderSelected);
            //
            // _btnOK
            //
            this._btnOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this._btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
            this._btnOK.FlatStyle    = System.Windows.Forms.FlatStyle.System;
            this._btnOK.Location     = new System.Drawing.Point(132, 440);
            this._btnOK.Name         = "_btnOK";
            this._btnOK.TabIndex     = 5;
            this._btnOK.Text         = "OK";
            this._btnOK.Click       += new System.EventHandler(_btnOK_Click);
            //
            // _btnCancel
            //
            this._btnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this._btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this._btnCancel.FlatStyle    = System.Windows.Forms.FlatStyle.System;
            this._btnCancel.Location     = new System.Drawing.Point(217, 440);
            this._btnCancel.Name         = "_btnCancel";
            this._btnCancel.TabIndex     = 6;
            this._btnCancel.Text         = "Cancel";

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
            this.AcceptButton      = this._btnOK;
            this.CancelButton      = this._btnCancel;
            this.Controls.Add(this._btnCancel);
            this.Controls.Add(this._btnOK);
            this.Controls.Add(this._treeFeeds);
            this.Name       = "SelectFeedFolderForm";
            this.ClientSize = new System.Drawing.Size(300, 470);
            this.Text       = "Select Destination Feed Folder";
            this.ResumeLayout(false);
        }
Exemplo n.º 6
0
        public void CreateComponents()
        {
            _lblAvailable           = new Label();
            _lblAvailable.Text      = "Available:";
            _lblAvailable.FlatStyle = FlatStyle.System;
            _lblAvailable.AutoSize  = true;

            _lblInWorkspace           = new Label();
            _lblInWorkspace.FlatStyle = FlatStyle.System;
            _lblInWorkspace.AutoSize  = true;

            _lblProcessing           = new Label();
            _lblProcessing.FlatStyle = FlatStyle.System;
            _lblProcessing.AutoSize  = true;
            _lblProcessing.Visible   = false;
            _lblProcessing.Text      = "Processing...";

            _btnAdd             = CreateTabButton("Add", OnAddTreeClick);
            _btnAddWithChildren = CreateTabButton("Add Subtree", OnAddTreeRecursiveClick);
            _btnRemove          = CreateTabButton("Remove", OnRemoveTreeClick);

            _tvAvailable = new ResourceTreeView();
            _tvAvailable.AddNodeFilter(new HideAllWorkspacesResourcesFilter());
            if (_availTreeFilter != null)
            {
                _tvAvailable.AddNodeFilter(_availTreeFilter);
            }
            _tvAvailable.RootResource = _rootResource;
            if (_parentProperty > 0)
            {
                _tvAvailable.ParentProperty = _parentProperty;
            }
            else
            {
                _tvAvailable.ParentProperty = Core.Props.Parent;
            }

            _tvAvailable.MultiSelect              = true;
            _tvAvailable.HideSelection            = false;
            _tvAvailable.ExecuteDoubleClickAction = false;
            _tvAvailable.ShowContextMenu          = false;
            _tvAvailable.AllowDrop    = false;
            _tvAvailable.DoubleClick += OnAvailableTreeDoubleClick;
            _tvAvailable.AfterSelect += OnAvailableTreeSelectionChanged;
            _tvAvailable.TreeUpdated += OnTreeUpdated;

            _tvInWorkspace = new ResourceTreeView();
            _tvInWorkspace.ResourceChildProvider    = this;
            _tvInWorkspace.MultiSelect              = true;
            _tvInWorkspace.HideSelection            = false;
            _tvInWorkspace.ParentProperty           = _workspaceManager.GetRecurseLinkPropId(_resourceTypes [0]);
            _tvInWorkspace.ExecuteDoubleClickAction = false;
            _tvInWorkspace.ShowContextMenu          = false;
            _tvInWorkspace.AllowDrop    = false;
            _tvInWorkspace.DoubleClick += OnRemoveTreeClick;
            _tvInWorkspace.AfterSelect += OnWorkspaceTreeSelectionChanged;
            _tvInWorkspace.TreeUpdated += OnTreeUpdated;
            if (_inWorkspaceTreeFilter != null)
            {
                _tvInWorkspace.AddNodeFilter(_inWorkspaceTreeFilter);
            }

            UpdateAvailableTreeSelection();
            UpdateWorkspaceTreeSelection();

            Controls.AddRange(new Control[] { _lblAvailable, _tvAvailable,
                                              _btnAdd, _btnAddWithChildren, _btnRemove, _lblProcessing,
                                              _lblInWorkspace, _tvInWorkspace });
        }