Exemplo n.º 1
0
        private void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var list = data.S_KullaniciKontrol(txtKullaniciAdi.Text).ToList();

            if (list.FirstOrDefault().ID > 0)
            {
                XtraMessageBox.Show("Kullanıcı Adi daha önce kayıt edilmiştir.", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                data.IUD_Kullanici(false,
                                   KullaniciID,
                                   txtKullaniciAdi.Text,
                                   txtParola.Text,
                                   txtEPosta.Text,
                                   Convert.ToInt32(cmbPersonel.EditValue));
                data.IUD_KullaniciAyarlari(KullaniciID, "", "", null, "", false, 0,
                                           Convert.ToInt32(cmbDashboard.EditValue), Convert.ToBoolean(toggDashboardOtomatikYenilensin.EditValue),
                                           Convert.ToInt32(txtDashboardYenilenmeSuresi.EditValue), 1);
                Mesaj.MesajVer("Kullanıcı Kartı başarılı şekilde kayıt edilmiştir.", Mesaj.MesajTipi.Bilgi, this);
            }
        }