public void RefreshLinkedFiles() { try { ManuallyLinkedFiles.Clear(); if (!VM_ShokoServer.Instance.ServerOnline) { return; } List <VM_VideoLocal> vids = VM_ShokoServer.Instance.ShokoServices.GetAllManuallyLinkedFiles(VM_ShokoServer.Instance.CurrentUser.JMMUserID).CastList <VM_VideoLocal>(); FileCount = vids.Count; foreach (VM_VideoLocal vid in vids) { ManuallyLinkedFiles.Add(vid); } } catch (Exception ex) { Utils.ShowErrorMessage(ex); } }
public void RefreshLinkedFiles() { try { ManuallyLinkedFiles.Clear(); if (!JMMServerVM.Instance.ServerOnline) { return; } List <JMMServerBinary.Contract_VideoLocal> vids = JMMServerVM.Instance.clientBinaryHTTP.GetAllManuallyLinkedFiles(JMMServerVM.Instance.CurrentUser.JMMUserID.Value); FileCount = vids.Count; foreach (JMMServerBinary.Contract_VideoLocal vid in vids) { ManuallyLinkedFiles.Add(new VideoLocalVM(vid)); } } catch (Exception ex) { Utils.ShowErrorMessage(ex); } }