public GroupsView(Sidebar sidebar, Control parent, int Left, int Top, Group parentGroup)
            : base(sidebar, parent, Left, Top, false)
        {
            Height += 50;
            this.parentGroup = parentGroup;
            HeightCounter = Top + 45;
            lblGroupLabel = new Label(manager);
            lblGroupLabel.Init();
            lblGroupLabel.Parent = parent;
            lblGroupLabel.Left = LeftPadding;
            lblGroupLabel.Top = 10;// HeightCounter;
            lblGroupLabel.Width = sidebar.Width / 2;
            lblGroupLabel.Text = "";
            lblGroupLabel.TextColor = Color.Black;
            //HeightCounter += lblGroupLabel.Height + LeftPadding;

            ItemCreator += ItemCreatorDelegate;

            Initialize();

            btnCreateGroup = new Button(manager);
            btnCreateGroup.Init();
            btnCreateGroup.Parent = parent;
            btnCreateGroup.Top = HeightCounter;
            btnCreateGroup.Text = "Create Group";
            btnCreateGroup.Height = (int)(btnCreateGroup.Height * 1.5);
            btnCreateGroup.Width = (parent.Width - LeftPadding * 2) / 2;
            btnCreateGroup.Left = LeftPadding;//parent.Width / 2 - btnCreateGroup.Width / 2;
            btnCreateGroup.Click += (s, e) =>
            {
                createGroupWindow = new CreateGroupWindow(sidebar);
            };
            Margins m = btnCreateGroup.ClientMargins;
            btnCreateGroup.ClientMargins = new Margins(m.Left, 1, m.Right, 1);

            btnEmptyGroup = new Button(manager);
            btnEmptyGroup.Init();
            btnEmptyGroup.Parent = parent;
            btnEmptyGroup.Top = HeightCounter;
            btnEmptyGroup.Text = "Empty Group";
            btnEmptyGroup.Height = (int)(btnEmptyGroup.Height * 1.5);
            btnEmptyGroup.Width = btnCreateGroup.Width;
            btnEmptyGroup.Left = parent.Width - LeftPadding * 2 - btnEmptyGroup.Width;//parent.Width / 2 - btnCreateGroup.Width / 2;
            btnEmptyGroup.Click += (s, e) =>
            {
                sidebar.btnRemoveAllNodes_Click(null, null);
            };
            Margins m2 = btnEmptyGroup.ClientMargins;
            btnEmptyGroup.ClientMargins = new Margins(m2.Left, 1, m2.Right, 1);

            HeightCounter += btnCreateGroup.Height + LeftPadding;

            btnEmptyAll = new Button(manager);
            btnEmptyAll.Init();
            btnEmptyAll.Parent = parent;
            btnEmptyAll.Top = HeightCounter;
            btnEmptyAll.Text = "Empty All Groups";
            //btnEmptyAll.Height = (int)(btnEmptyGroup.Height * 1.5);
            btnEmptyAll.Width = parent.Width / 2;
            btnEmptyAll.Left = parent.Width / 2 - btnEmptyAll.Width / 2;//parent.Width / 2 - btnCreateGroup.Width / 2;
            btnEmptyAll.Click += (s, e) =>
            {
                EmptyAllGroups();
            };
        }