Esempio n. 1
0
        private void CreatePlaylistButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new FMPTextEntryBox("Playlist Name");

            dialog.ShowDialog();
            if (dialog.OK)
            {
                library.CreatePlaylist(dialog.Response, track);
            }
            InitFields();
        }
Esempio n. 2
0
        private void CreatePlaylistButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new FMPTextEntryBox("Playlist Name");

            dialog.ShowDialog();

            if (dialog.OK)
            {
                if (string.IsNullOrWhiteSpace(dialog.Response))
                {
                    MessageBox.Show(string.Format(Properties.Resources.PLAYLISTMANAGEMENT_INVALIDNAME, dialog.Response));
                }
                else
                {
                    library.CreatePlaylist(dialog.Response, track);
                    InitFields();
                }
            }
        }