Пример #1
0
		public bool AddListToBuild(short aCatType, JumpListItem[] items, string catName)
		{
			var array = GeckoCollectionsHelper.CreateArray();
			for (int i = 0; i < items.Length; i++)
			{
				//array.AppendElement(items[i]._item, false);
			}

			return nsString.Pass( x => _jumpListBuilder.AddListToBuild( aCatType, array, x ), catName );
		}
Пример #2
0
		public bool InitListBuild(out JumpListItem[] removedItems)
		{
			var array=Collections.GeckoCollectionsHelper.CreateArray();
			bool ret = _jumpListBuilder.InitListBuild( array );
			removedItems = null;
			if (ret)
			{
				removedItems = new JumpListItem[array.GetLengthAttribute()];
				for (int i = 0; i < removedItems.Length; i++)
				{
					removedItems[ i ] = new JumpListItem( array.GetElementAs<nsIJumpListItem>( i ) );
				}
			}
			return ret;
		}
Пример #3
0
        public bool InitListBuild(out JumpListItem[] removedItems)
        {
            var  array = Collections.GeckoCollectionsHelper.CreateArray();
            bool ret   = _jumpListBuilder.InitListBuild(array);

            removedItems = null;
            if (ret)
            {
                removedItems = new JumpListItem[array.GetLengthAttribute()];
                for (int i = 0; i < removedItems.Length; i++)
                {
                    removedItems[i] = new JumpListItem(array.GetElementAs <nsIJumpListItem>(i));
                }
            }
            return(ret);
        }