Exemplo n.º 1
0
        private void KanalSil()
        {
            _islem = new Islem(_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();
                _islem.Sil(new Kanal
                {
                    Ad = seciliKanal
                });
            }
        }
Exemplo n.º 2
0
        private List <Kanal> KanalBul()
        {
            _islem = new Islem(_aktar);

            List <Kanal> bul;

            if (tstBul.Text.StartsWith("@"))
            {
                bul = _islem.GrubaGoreBul(new Kanal
                {
                    Grup = tstBul.Text.Remove(0, 1)
                });
            }
            else
            {
                bul = _islem.AdaGoreBul(new Kanal
                {
                    Ad = tstBul.Text
                });
            }

            return(bul);
        }