Esempio n. 1
0
        private DevComponents.DotNetBar.RibbonBar ProcessGroup(RibbonBar bar)
        {
            DevComponents.DotNetBar.RibbonBar groupPanel = new DevComponents.DotNetBar.RibbonBar();
            groupPanel.LicenseKey        = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
            groupPanel.Text              = bar.Name;
            groupPanel.LayoutOrientation = bar.Orientation == Orientation.Horizontal ? eOrientation.Horizontal : eOrientation.Vertical;

            foreach (var button in bar.Buttons)
            {
                var bi = ProcessButton(button);
                groupPanel.Items.Add(bi);
            }

            return(groupPanel);
        }
 public RibbonBarBuilder InsertRibbonBar(int index, RibbonBar obj)
 {
     objects.Insert(index, obj);
     return this;
 }
 public RibbonBarBuilder AddRibbonBar(RibbonBar obj)
 {
     objects.Add(obj);
     return this;
 }
        private DevComponents.DotNetBar.RibbonBar ProcessGroup(RibbonBar bar)
        {
            DevComponents.DotNetBar.RibbonBar groupPanel = new DevComponents.DotNetBar.RibbonBar();
            groupPanel.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
            groupPanel.Text = bar.Name;
            groupPanel.LayoutOrientation = bar.Orientation == Orientation.Horizontal ? eOrientation.Horizontal : eOrientation.Vertical;

            foreach (var button in bar.Buttons)
            {
                var bi = ProcessButton(button);
                groupPanel.Items.Add(bi);
            }

            return groupPanel;
        }
Esempio n. 5
0
 public RibbonBarBuilder InsertRibbonBar(int index, RibbonBar obj)
 {
     objects.Insert(index, obj);
     return(this);
 }
Esempio n. 6
0
 public RibbonBarBuilder AddRibbonBar(RibbonBar obj)
 {
     objects.Add(obj);
     return(this);
 }