/// <summary> /// Sil (Delete) butonuna basıldığında ilgili kullanıcının veritabanından silinmesi işlemi gerçekleşmektedir ... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSil_Click(object sender, EventArgs e) { if (MessageBox.Show("Silmek istediğinize emin misiniz ?", "Uyarı", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { KullaniciContract crud = new KullaniciContract(); crud.DeletedUser(txtKullaniciKod.Text); MessageBox.Show("Başarı ile silme işlemi gerçekleşmiştir. Silinen Kayıt : " + txtKullaniciKod.Text, "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); UIUserIdentification user = new UIUserIdentification(); user.LoadUser(); this.Close(); } }