Beispiel #1
0
 private void btnKullaniciEkle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     FormKapatma();
     if (Login.yetki == -1)
     {
         XtraMessageBox.Show("Öncelikle Giriş Yapmanız Gerekmektedir", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         if (Login.yetki == 0)  //Kullanıcı ekleme işlemi için yetki kontrolü
         {
             if (frmKullaniciEkle == null)
             {
                 frmKullaniciEkle             = new frmKullaniciEkle();
                 frmKullaniciEkle.MdiParent   = this;
                 frmKullaniciEkle.FormClosed += frmKullaniciEkleClosed;
                 frmKullaniciEkle.Show();
             }
             else
             {
                 frmKullaniciEkle.Show();
             }
         }
         else
         {
             XtraMessageBox.Show("Bu işlem için yetkiniz yok !", "Yetki Hatası", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }
Beispiel #2
0
 private void frmKullaniciEkleClosed(object sender, FormClosedEventArgs e)
 {
     frmKullaniciEkle = null;
 }