Exemple #1
0
    protected virtual void OnQueueSaveButtonClicked(object sender, System.EventArgs e)
    {
        Playlist tempList = new Playlist();

        if (queueEntryBox.Text.Equals(""))
        {
            tempList.Name = "Unnamed queue";
        }
        else
        {
            tempList.Name = queueEntryBox.Text;
        }

        tempList.AddMultiple((ArrayList)queue.SongsList.Clone());


        playlists.Add(tempList);

        playListStore.Clear();
        playListArrayList = new ArrayList();

        foreach (Playlist x in playlists)
        {
            playListArrayList.Add(x);
            playListStore.AppendValues(x.ToString());
        }

        bottomStatusBar.Push(1, "added playlist " + tempList.Name + " to the collection.");
    }