Example #1
0
        private void ContextMenu_Clicked(object sender, RoutedEventArgs e)
        {
            //需要弹出一窗口来选择需要添加的歌单
            Window choseWindow = new ChooseListWindow();

            (choseWindow as ChooseListWindow)._listNames = Data.MusicListName;
            (choseWindow as ChooseListWindow).song       = listViewSearch.SelectedItem as Music;
            choseWindow.Show();
        }
        /// <summary>
        /// 右键菜单添加歌曲到歌单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ContextMenu_Clicked(object sender, RoutedEventArgs e)
        {
            //需要弹出一窗口来选择需要添加的歌单
            Window choseWindow = new ChooseListWindow();

            choseWindow.Owner = ParentWindow;
            choseWindow.WindowStartupLocation            = WindowStartupLocation.CenterOwner;
            (choseWindow as ChooseListWindow)._listNames = Data.MusicListName;
            (choseWindow as ChooseListWindow).song       = MusicListView.SelectedItem as Music;
            choseWindow.Show();
        }