Example #1
0
        private void AddParameterGroup(ParameterGroup p, int i, float paramNameWidth, int totalWidth)
        {
            ParameterGroupPanel pgp = new ParameterGroupPanel();

            parameterGroupPanels[i] = pgp;
            pgp.Init(p, paramNameWidth, totalWidth);
            pgp.Dock = DockStyle.Fill;
            if (p.Name == null)
            {
                grid.Controls.Add(pgp, 0, i);
            }
            else
            {
                GroupBox gb = new GroupBox {
                    Text = p.Name, Margin = new Padding(3), Padding = new Padding(3), Dock = DockStyle.Fill,
                };
                gb.Controls.Add(pgp);
                grid.Controls.Add(gb, 0, i);
            }
        }
Example #2
0
 private void AddParameterGroup(ParameterGroup p, int i, float paramNameWidth, int totalWidth)
 {
     ParameterGroupPanel pgp = new ParameterGroupPanel();
     parameterGroupPanels[i] = pgp;
     pgp.Init(p, paramNameWidth, totalWidth);
     pgp.Dock = DockStyle.Fill;
     if (p.Name == null){
         grid.Controls.Add(pgp, 0, i);
     } else{
         GroupBox gb = new GroupBox{Text = p.Name, Margin = new Padding(3), Padding = new Padding(3), Dock = DockStyle.Fill,};
         gb.Controls.Add(pgp);
         grid.Controls.Add(gb, 0, i);
     }
 }