コード例 #1
0
        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);
        }
コード例 #2
0
 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);
     }
 }