private void SQLItem_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(SQLFormCreate)) { form.Activate(); return; } } SQLFormCreate child = new SQLFormCreate() { Padding = new Padding(0), MdiParent = this }; child.Show(); OpenWaitForm(); }
private void barSQL_ItemClick(object sender, ItemClickEventArgs e) { var frm = new SQLFormCreate(); frm.Show(); }