예제 #1
0
        // For creating a music library
        private void NewLibraryButton_Click(object sender, RoutedEventArgs e)
        {
            var newNameWin = new NewName_Window("Create new Library");

            newNameWin.Owner = this;
            newNameWin.ShowDialog();
        }
예제 #2
0
        private void RenameLibrary_Click(object sender, RoutedEventArgs e)
        {
            if (libraryListView.SelectedIndex == -1)
            {
                return;
            }

            if (currentlyPlayingMusicList.SequenceEqual(currentlyViewingMusicList) && currentPlayingLabel.Content.ToString().Length != 0) // Can't rename currently playing list
            {
                MessageBox.Show("Can't rename library that is playing.", "Erorr");
            }
            else
            {
                var newNameWin = new NewName_Window("Rename Library", libraryListView.SelectedValue.ToString());
                newNameWin.Owner = this;
                newNameWin.ShowDialog();
            }
        }