private void navBarItem7_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     if (frmkz == null || frmkz.IsDisposed)
     {
         frmkz = new frmKarZarar();
         frmkz.Show();
         if (frmog != null)
         {
             frmog.Close();
         }
         if (frmoc != null)
         {
             frmoc.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 (frmn != null)
         {
             frmn.Close();
         }
         if (frmkes != null)
         {
             frmkes.Close();
         }
     }
 }
示例#2
0
 private void btnKarZarar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (frmkz == null || frmkz.IsDisposed)
     {
         frmkz           = new frmKarZarar();
         frmkz.MdiParent = this;
         frmkz.Show();
         if (frmoc != null)
         {
             frmoc.Close();
         }
         if (frmg != null)
         {
             frmg.Close();
         }
     }
 }