private void addPlayable(object theItem) { playableData tmpPlayable = (playableData)theItem; var uri = new Uri(tmpPlayable.getFilePath()); axVLC.addTarget(uri.AbsoluteUri, null, AXVLC.VLCPlaylistMode.VLCPlayListAppend, -1); }
private void lstPlayable_DoubleClick(object sender, EventArgs e) { if (lstPlayable.SelectedIndex != -1) { playableData tmp = (playableData)lstPlayable.SelectedItem; playFilePath(tmp.getFilePath()); } }
public void updatePlayable() { //Read all playable files in download directory String[] mkvFiles = System.IO.Directory.GetFiles(Properties.Settings.Default.DownloadDir, "*.mkv", System.IO.SearchOption.AllDirectories); String[] aviFiles = System.IO.Directory.GetFiles(Properties.Settings.Default.DownloadDir, "*.avi", System.IO.SearchOption.AllDirectories); lstPlayable.Items.Clear(); foreach (String tmp in mkvFiles) { playableData tmpPlayable = new playableData(tmp); lstPlayable.Items.Add((object)tmpPlayable); } foreach (String tmp in aviFiles) { playableData tmpPlayable = new playableData(tmp); lstPlayable.Items.Add((object)tmpPlayable); } }