public void SetUserCommands(IEnumerable <BindableCommand> userCommands)
        {
            this._userCommandPanel.SuspendLayout();
            this._userCommandPanel.Controls.Clear();
            if (userCommands == null || userCommands.Count() == 0)
            {
                return;
            }
            using (Graphics g = CreateGraphics())
            {
                foreach (BindableCommand command in userCommands)
                {
                    Button newButton = new UserCommandButton();

                    newButton.Dock = System.Windows.Forms.DockStyle.Bottom;
                    this._userCommandPanel.Controls.Add(newButton);

                    command.BindTo(newButton);
                }
            }
            this._userCommandPanel.ResumeLayout();
        }
        public void SetUserCommands(IEnumerable<BindableCommand> userCommands)
        {
            this._userCommandPanel.SuspendLayout();
            this._userCommandPanel.Controls.Clear();
            if (userCommands == null || userCommands.Count() == 0) { return; }
            using (Graphics g = CreateGraphics())
            {
                foreach (BindableCommand command in userCommands)
                {
                    Button newButton = new UserCommandButton();

                    newButton.Dock = System.Windows.Forms.DockStyle.Bottom;
                    this._userCommandPanel.Controls.Add(newButton);

                    command.BindTo(newButton);
                }
            }
            this._userCommandPanel.ResumeLayout();
        }