public MediaHandle[] GetAll()
        {
            var allItems = new MediaHandle[this.HandleList.Count];

            for (var i = 0; i < this.HandleList.Count; i++)
            {
                allItems[i] = this.HandleList[i] as MediaHandle;
            }
            return(allItems);
        }
 public bool AddHandle(MediaHandle newItem)
 {
     try
     {
         if (this.HandleList.Contains(newItem.HandleName))
         {
             this.HandleList[newItem.HandleName] = newItem;
         }
         else
         {
             this.HandleList.Add(newItem.HandleName, newItem);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }