Пример #1
0
        public void RenamePlaylist(object sender, RoutedEventArgs e)
        {
            var               PlaylistButton = sender as Button;
            Playlist          playlist       = (Playlist)PlaylistButton.Tag;
            NewPlaylistWindow RenameWindow   = new NewPlaylistWindow(true, playlistToUse);

            RenameWindow.Show();
            RenameWindow.Closed += (object sender2, EventArgs e2) => { playlistToUse.RefreshPlaylist(); rerender(playlistToUse); mainWindow.RerenderPlaylists(); };
        }
Пример #2
0
        private void NewPlaylistButtonClick(object sender, RoutedEventArgs e)
        {
            NewPlaylistWindow NewPlaylist = new NewPlaylistWindow();

            NewPlaylist.Show();

            MainGrid.Effect = new BlurEffect {
                Radius = 10
            };
            NewPlaylist.Closed += (object sender2, EventArgs e2) => OnContentRendered(e);
        }