Пример #1
0
		internal void Load ()
		{
			Clear ();
			uint count;
			unmanagedWindows.getLength (out count);
			Window[] tmpwindows = new Window[count];
			for (int i = 0; i < count;i++) {
				nsIDOMWindow window;
				unmanagedWindows.item ((uint)i, out window);
				tmpwindows[windowCount++] = new Window (control, (nsIDOMWindow)window);
			}
			windows = new Window[windowCount];
			Array.Copy (tmpwindows, windows, windowCount);
		}
Пример #2
0
		public void Insert (int index, IWindow value) 
		{
			if (index > windowCount)
				index = windowCount;
			IWindow[] tmp = new Window[windowCount+1];
			if (index > 0)
				Array.Copy (windows, 0, tmp, 0, index);
			tmp[index] = value;
			if (index < windowCount)
				Array.Copy (windows, index, tmp, index + 1, (windowCount - index));
			windows = tmp;
			windowCount++;
		}