Exemplo n.º 1
0
 public void AddRibbonButton(ExRibbonButton button)
 {
     button.Location = new Point(nexticon, 5);
     this.Controls.Add(button);
     nexticon += 69;
     base.Refresh();
 }
Exemplo n.º 2
0
        public FrameForm()
        {
            InitializeComponent();
            exRibbon.TabPages.Clear();

            ExRibbonTab startTab = new ExRibbonTab();
            exRibbon.AddRibbonTab(startTab);

            ExRibbonButton button_warrior = new ExRibbonButton(RPA.Presentation.Properties.Resources.warrior);
            ExRibbonButton button_rogue = new ExRibbonButton(RPA.Presentation.Properties.Resources.rogue);

            startTab.AddRibbonButton(button_warrior);
            startTab.AddRibbonButton(button_rogue);
        }