Beispiel #1
0
 public void UpdateIndex(DatabasePlaylist list, int offset)
 {
     if (!ContainingListInstances.ContainsKey(list))
     {
         throw new ArgumentException();
     }
     ContainingListInstances[list] = offset;
 }
Beispiel #2
0
 public bool TryAdd(DatabasePlaylist list, int offset)
 {
     if (ContainingListInstances.ContainsKey(list))
     {
         return(false);
     }
     ContainingListInstances.Add(list, offset);
     return(true);
 }
Beispiel #3
0
 public bool IsContainedIn(DatabasePlaylist list)
 {
     return(ContainingListInstances.ContainsKey(list));
 }