private void navBarItem5_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { if (frmmk == null || frmmk.IsDisposed) { frmmk = new frmMusteriKayitlari(); frmmk.Show(); if (frmog != null) { frmog.Close(); } if (frmoc != null) { frmoc.Close(); } if (frmoy != null) { frmoy.Close(); } if (frmn != null) { frmn.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 btnMusteriKayitlari_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (frmmk == null || frmmk.IsDisposed) { frmmk = new frmMusteriKayitlari(); frmmk.MdiParent = this; frmmk.Show(); if (frmoc != null) { frmoc.Close(); } if (frmoy != null) { frmoy.Close(); } if (frmog != null) { frmog.Close(); } } }