public LibraryViewModel() { global = true; _img = Image_filter.None; _vid = Video_filter.None; _aud = Audio_filter.None; librarylist = new List<MediaContent>(); _PlaylistList = new List<String>(); _LibraryList = CollectionViewSource.GetDefaultView(librarylist); }
public bool activate_video_filter(int index) { if (index >= 0 && index < _PlaylistList.Count && (index + 1) <= (int)Video_filter.Genre) { _vid = (Video_filter)(index + 1); return true; } return false; }