/* Yeni Kelime Ekleme Islemi */ private void btnAdd_Click(object sender, EventArgs e) { if (txtWord.Text.Length > 1 && txtMean.Text.Length > 1) { DialogResult check = MessageBox.Show("Bu Kelimeyi Eklemek İstiyor Musunuz ?", "Uyarı", MessageBoxButtons.YesNo); if (check == DialogResult.Yes) { Word word = new Word(); word.Title = txtWord.Text; word.Mean = txtMean.Text; word.Description = txtDescription.Text; word.Date = dateDate.Value.ToShortDateString(); if (words.Count(x => x.Title == txtWord.Text) <= 0) { _wordManager.AddModel(word); txtWord.Text = ""; txtMean.Text = ""; txtDescription.Text = ""; MessageBox.Show("Kelime Başarıyla Eklendi."); } else { MessageBox.Show("Bu Kelime Daha Önce Eklenmiş."); } } } else { MessageBox.Show("Lütfen Bütün Alanları Doldurunuz."); } }