Example #1
0
        private void navBarItem1_LinkPressed(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            var forma = new RibbonForm1();

            forma.MdiParent = this;
            forma.Show();
        }
        private void navBarItem1_LinkPressed(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(RibbonForm1))
                {
                    form.Activate();
                    return;
                }
            }
            var forma = new RibbonForm1();

            forma.MdiParent = this;
            forma.Show();
        }
        private void barLinkContainerItem2_LinkAdded(object sender, LinkEventArgs e)
        {
            RibbonForm1 f = new RibbonForm1();

            barLinkContainerItem1.AddItem(f.barEditItem1);
        }