Пример #1
0
        private void navBarItem2_LinkPressed(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            var forma = new RibbonForm2();

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

            forma.MdiParent = this;
            forma.Show();
        }