private void Initialize()
        {
            TreeNode columnsNode       = new TreeNode("Columns");
            bool     showExcludedItems = this.ProjectNode.Project.UserSettings.ShowExcludedItems;

            this.Nodes.Add(columnsNode);

            foreach (var columnMapping in this.TableMapping.ColumnMappings)
            {
                if (!columnMapping.Exclude || showExcludedItems)
                {
                    ColumnTreeNode node = new ColumnTreeNode(this, columnMapping);

                    columnsNode.Nodes.Add(node);
                    Application.DoEvents();
                }
            }

            if (this.TableMapping.UniqueIndexMappings.Count > 0)
            {
                TreeNode uniqueIndicesNode = new TreeNode("Unique Indices");

                this.Nodes.Add(uniqueIndicesNode);

                foreach (var uniqueIndexMapping in this.TableMapping.UniqueIndexMappings)
                {
                    if (!uniqueIndexMapping.Exclude || showExcludedItems)
                    {
                        UniqueIndexTreeNode node = new UniqueIndexTreeNode(this, uniqueIndexMapping);

                        uniqueIndicesNode.Nodes.Add(node);
                        Application.DoEvents();
                    }
                }
            }

            this.ContextMenu = new ContextMenu();
            this.ContextMenu.MenuItems.Add(new MenuItem("Exclude From Project"));
            this.ContextMenu.MenuItems[0].Checked = this.TableMapping.Exclude;
            this.ContextMenu.MenuItems[0].Click  += new EventHandler(ExcludeFromProjectMenuItem_Click);

            UpdateNode();
        }
        private void Initialize()
        {
            TreeNode columnsNode = new TreeNode("Columns");
            bool showExcludedItems = this.ProjectNode.Project.UserSettings.ShowExcludedItems;

            this.Nodes.Add(columnsNode);

            foreach (var columnMapping in this.TableMapping.ColumnMappings)
            {
                if (!columnMapping.Exclude || showExcludedItems)
                {
                    ColumnTreeNode node = new ColumnTreeNode(this, columnMapping);

                    columnsNode.Nodes.Add(node);
                    Application.DoEvents();
                }
            }

            if (this.TableMapping.UniqueIndexMappings.Count > 0)
            {
                TreeNode uniqueIndicesNode = new TreeNode("Unique Indices");

                this.Nodes.Add(uniqueIndicesNode);

                foreach (var uniqueIndexMapping in this.TableMapping.UniqueIndexMappings)
                {
                    if (!uniqueIndexMapping.Exclude || showExcludedItems)
                    {
                        UniqueIndexTreeNode node = new UniqueIndexTreeNode(this, uniqueIndexMapping);

                        uniqueIndicesNode.Nodes.Add(node);
                        Application.DoEvents();
                    }
                }
            }

            this.ContextMenu = new ContextMenu();
            this.ContextMenu.MenuItems.Add(new MenuItem("Exclude From Project"));
            this.ContextMenu.MenuItems[0].Checked = this.TableMapping.Exclude;
            this.ContextMenu.MenuItems[0].Click += new EventHandler(ExcludeFromProjectMenuItem_Click);

            UpdateNode();
        }