Example #1
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DelBt_Click(object sender, EventArgs e)
        {
            IsChangeDic = true;            //修改了,变为true

            rssDic.Remove(RssLinkTb.Text); //移除集合中删除的

            RssList.Items.Clear();         //清空
            RssLinkTb.Clear();
            RssTitleTb.Clear();

            LoadRssNews();  //重新加载rsslist
        }
Example #2
0
        /// <summary>
        /// 保存修改按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UpdateBt_Click(object sender, EventArgs e)
        {
            IsChangeDic = true;

            string rssUrl = rssDic.ElementAt(RssList.SelectedIndex).Key;

            rssDic[rssUrl] = RssTitleTb.Text.Trim();

            RssList.Items.Clear();  //清空
            RssLinkTb.Clear();
            RssTitleTb.Clear();
            LoadRssNews();  //重新加载rsslist
        }