Exemplo n.º 1
0
        private void btn_guncelle_Click(object sender, EventArgs e)
        {
            int donendeger = bll.KayitDuzenle(ID, txt_ad.Text, txt_soyad.Text, txt_telefon1.Text, txt_telefon2.Text, txt_telefon3.Text, txt_email.Text, txt_web.Text, txt_adres.Text, txt_aciklama.Text);

            if (donendeger > 0)
            {
                MessageBox.Show("Kayıt güncellendi.", "Bilgilendirme", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ListeGoster();
            }
            else
            {
                MessageBox.Show("Kayıt değiştirilemedi", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemplo n.º 2
0
        private void btn_duzenle_Click(object sender, EventArgs e)
        {
            Guid ID = ((Rehber)lst_liste.SelectedItem).ID;

            BusinessLogicLayer.BLL BLL = new BusinessLogicLayer.BLL();
            int ReturnValues           = BLL.KayitDuzenle(ID, txt_g_isim.Text, txt_g_soyisim.Text, txt_g_telefonI.Text,
                                                          txt_g_telefonII.Text, txt_g_telefonIII.Text, txt_g_email.Text, txt_g_webadres.Text,
                                                          txt_g_adres.Text, txt_g_aciklama.Text);

            if (ReturnValues > 0)
            {
                ListeDoldur();
                MessageBox.Show("Kaydınız Güncellemiştir");
            }
        }