private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     if (frmn == null || frmn.IsDisposed)
     {
         frmn = new frmNotlar();
         frmn.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 (frmkz != null)
         {
             frmkz.Close();
         }
     }
 }
Esempio n. 2
0
 private void btnOtoparkGiris_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (frmog == null || frmog.IsDisposed)
     {
         frmog           = new frmOtoparkGiris();
         frmog.MdiParent = this;
         frmog.Show();
         if (frmoc != null)
         {
             frmoc.Close();
         }
         if (frmoy != null)
         {
             frmoy.Close();
         }
         if (frmmk != null)
         {
             frmmk.Close();
         }
     }
 }