Пример #1
0
 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();
         }
     }
 }
Пример #2
0
 private void btnGiderKayitlari_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (frmg == null || frmg.IsDisposed)
     {
         frmg           = new frmGiderler();
         frmg.MdiParent = this;
         frmg.Show();
         if (frmkz != null)
         {
             frmkz.Close();
         }
     }
 }