private void Play_executed(object sender, ExecutedRoutedEventArgs e) { VideoFolderChild vfc = (VideoFolderChild)e.Parameter; if (vfc != null) { IPlayFile.PlayFileInit(vfc); } }
private void Play_executed(object sender, ExecutedRoutedEventArgs e) { if (e.Parameter is VideoFolderChild) { IVideoData vfc = (VideoFolderChild)e.Parameter; IPlayFile.PlayFileInit(vfc); return; } IFolder videofolder = e.Parameter as VideoFolder; IPlayFile.PlayFileInit(videofolder); }
public void Open(IVideoData videoFolder) { iplayFilecaller.PlayFileInit(videoFolder); }