private void navBarItem3_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { if (frmoc == null || frmoc.IsDisposed) { frmoc = new frmOtoparkCikis(); frmoc.Show(); if (frmog != null) { frmog.Close(); } if (frmn != null) { frmn.Close(); } if (frmoy != null) { frmoy.Close(); } if (frmmk != null) { frmmk.Close(); } if (frmr != null) { frmr.Close(); } if (frmke != null) { frmke.Close(); } if (frmsu != null) { frmsu.Close(); } if (frmg != null) { frmg.Close(); } if (frmkz != null) { frmkz.Close(); } if (frmkes != null) { frmkes.Close(); } } }
private void btnOtoparkCikis_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (frmoc == null || frmoc.IsDisposed) { frmoc = new frmOtoparkCikis(); frmoc.MdiParent = this; frmoc.Show(); if (frmog != null) { frmog.Close(); } if (frmoy != null) { frmoy.Close(); } if (frmmk != null) { frmmk.Close(); } } }