Example #1
0
        private void btn_düzenle_Click(object sender, EventArgs e)
        {
            Guid ID = ((Rehber)lst_liste.SelectedItem).ID;

            BusinessLogicLayer.BLL BLL = new BusinessLogicLayer.BLL();
            int ReturnValues           = BLL.KayitDüzenle(ID, txt_g_isim.Text, txt_g_soyisim.Text, txt_g_telefonI.Text, txt_g_telefonII.Text, txt_g_telefonIII.Text, txt_g_emailadres.Text, txt_g_website.Text, txt_g_adres.Text, txt_g_aciklama.Text);

            if (ReturnValues > 0)
            {
                ListeDoldur();
                MessageBox.Show("Kayıt Güncellendi.", "Bilgilendirme", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        private void btnGuncelle_Click(object sender, EventArgs e)
        {
            BusinessLogicLayer.BLL bll = new BusinessLogicLayer.BLL();
            Rehber K           = (Rehber)lstListe.SelectedItem;
            int    ReturnValue = bll.KayitDüzenle(K.KullaniciID, txtIsim.Text, txtSoyisim.Text, txtTelefonI.Text, txtTelefonII.Text, txtTelefonIII.Text, txtEmailAdres.Text, txtWebSite.Text, txtAdres.Text, txtAciklama.Text);

            if (ReturnValue > 0)
            {
                MessageBox.Show("Kaydınız başarılı bir şekilde güncellendi", "Bilgilendirme", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ListeDoldur();
            }
            else
            {
                MessageBox.Show("Kayıt güncelleme işleminde hata oluştu", "HATA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }