コード例 #1
0
ファイル: Form1.cs プロジェクト: Mileman92/RibbonFormMerge
        private void navBarItem2_LinkPressed(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            var forma = new RibbonForm2();

            forma.MdiParent = this;
            forma.Show();
        }
コード例 #2
0
        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();
        }