private void Form3_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.Handled = e.SuppressKeyPress = true; Ara.PerformClick(); textBox3.Focus(); } }
private void KanalSil() { _ara = new Ara(_aktar); for (int i = 0; i < listView.SelectedItems.Count; i++) { if (!listView.SelectedItems[i].Selected) { continue; } int indeks = listView.SelectedItems[i].Index; string seciliKanal = listView.Items[indeks].SubItems[1].Text.Trim(); _ara.KanailSil(new Kanal { Ad = seciliKanal }); } }
private List <Kanal> KanalBul() { _ara = new Ara(_aktar); List <Kanal> bul; if (tstBul.Text.StartsWith("@")) { bul = _ara.GrubaGore(new Kanal { Grup = tstBul.Text.Remove(0, 1) }); } else { bul = _ara.AdaGore(new Kanal { Ad = tstBul.Text }); } return(bul); }