private void list_AfterSelect(object sender, TreeViewEventArgs e) { player.Ctlcontrols.stop(); player.close(); directoryInfo = new DirectoryInfo(Directory.GetCurrentDirectory().ToString()); var directoryNode = new TreeNode(directoryInfo.Name); TreeNode Cnode = e.Node; String path2 = Cnode.FullPath; path.Text = path2; list.Visible = false; ruta = Path.GetFullPath(Path.GetFileName(Path.GetFileName(path.Text))); player.URL = Path.GetFullPath(Path.GetFileName(Path.GetFileName(path.Text))); directoryInfo = new DirectoryInfo(Directory.GetCurrentDirectory().ToString()); player.Ctlcontrols.play(); } private void player_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e) { if (player.playState == WMPLib.WMPPlayState.wmppsMediaEnded) { player.Ctlcontrols.stop(); player.close(); TreeNode obj = new TreeNode(); obj = list.SelectedNode; list.SelectedNode = obj.NextNode; player.URL = (Path.GetFullPath(Path.GetFileName(path.Text))); player.Ctlcontrols.play(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)