示例#1
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            Podcast podEdit = (Podcast)retroListBox.SelectedItem;
            Podcast podRet;

            using (PodcastAdd podAdd = new PodcastAdd(podEdit))
            {
                if (podAdd.ShowDialog() == DialogResult.OK)
                {
                    podRet = podAdd.GetPodcast();


                    for (int i = 0; i < newPods.Count; i++)
                    {
                        if ((Podcast)newPods[i] == podEdit)
                        {
                            newPods[i] = podRet;
                        }
                    }

                    //newPods.Add(podAdd.GetPodcast());
                }
                loadPods();
            }
        }
示例#2
0
        private void podcastToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form podAdder = new PodcastAdd();

            podAdder.Top  = this.Top + 20;
            podAdder.Left = this.Left + 20;
            podAdder.Show();
        }
示例#3
0
        private void addRetroBtn_Click(object sender, EventArgs e)
        {
            Podcast pod = null;

            using (PodcastAdd podAdd = new PodcastAdd(true))
            {
                if (podAdd.ShowDialog() == DialogResult.OK)
                {
                    newPods.Add(podAdd.GetPodcast());
                }
                loadPods();
            }
        }