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