Esempio n. 1
0
        private void mixadd_Click(object sender, RoutedEventArgs e)
        {
            MediaItemMixWindow mimw = new MediaItemMixWindow();

            mimw.vm_ToopList.MediaFileList = vm_PlaylistInfo.MediaFileList;
            mimw.ShowDialog();
            if (mimw.vm_ToopList.LoopPlayFileList.Count > 0)
            {
                for (int i = 0; i < mimw.vm_ToopList.LoopPlayFileList.Count; i++)
                {
                    vm_PlaylistInfo.LoopAddNewPlayFile(mimw.vm_ToopList.LoopPlayFileList[i]);
                }
                vm_PlaylistInfo.RefreshPlayList();
                vm_PlaylistInfo.RefreshFileList();
            }
        }
Esempio n. 2
0
        private void mininst_Click(object sender, RoutedEventArgs e)
        {
            if (LBPlay.SelectedIndex < 0)
            {
                vm_PlaylistInfo.ErrorMessage = "请先选择左边列表要插入文件的位置!";
                return;
            }
            MediaItemMixWindow mimw = new MediaItemMixWindow();

            mimw.vm_ToopList.MediaFileList = vm_PlaylistInfo.MediaFileList;
            mimw.ShowDialog();
            if (mimw.vm_ToopList.LoopPlayFileList.Count > 0)
            {
                for (int i = 0; i < mimw.vm_ToopList.LoopPlayFileList.Count; i++)
                {
                    vm_PlaylistInfo.LoopInsertPlayFile(mimw.vm_ToopList.LoopPlayFileList[i], LBPlay.SelectedIndex + i);
                }
                vm_PlaylistInfo.RefreshPlayList();
                vm_PlaylistInfo.RefreshFileList();
            }
        }