Example #1
0
        private void OnPodcastMenuPropertiesActivated(object sender, EventArgs args)
        {
            TreePath[] selection = podcast_view.Selection.GetSelectedRows();
            TreePath   path      = podcast_view.GetPodcastModelPath(selection [0]);

            if (path != null)
            {
                PodcastInfo pi = podcast_model.PathPodcastInfo(path);

                if (pi != null)
                {
                    PodcastPropertiesDialog prop_dialog = new PodcastPropertiesDialog(pi);

                    prop_dialog.Show();
                }
            }
        }
        private void OnPodcastMenuPropertiesActivated(object sender, EventArgs args)
        {
            TreePath[] selection = podcast_view.Selection.GetSelectedRows ();
            TreePath path = podcast_view.GetPodcastModelPath(selection [0]);

            if (path != null)
            {
                PodcastInfo pi = podcast_model.PathPodcastInfo (path);

                if (pi != null)
                {
                    PodcastPropertiesDialog prop_dialog = new PodcastPropertiesDialog (pi);

                    prop_dialog.Show ();
                }
            }
        }