2006-04-26 Michael Hutchinson <m.j.hutchinson@gmail.com>

* ToolboxService.cs: Convert the TooboxItem arrays properly or they become
	null when empty, and ToolboxItemCollection gets unhappy. 


svn path=/trunk/aspeditor/; revision=59938
This commit is contained in:
Michael Hutchinson 2006-04-26 18:45:41 +00:00
Родитель 84ec92428c
Коммит 957f98717a
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2006-04-26 Michael Hutchinson <m.j.hutchinson@gmail.com>
* ToolboxService.cs: Convert the TooboxItem arrays properly or they become
null when empty, and ToolboxItemCollection gets unhappy.
2006-01-16 Michael Hutchinson <m.j.hutchinson@gmail.com>
* MenuCommandService.cs, WebFormPage.cs, Document.cs: Reduce trivial warnings

Просмотреть файл

@ -151,7 +151,7 @@ namespace AspNetEdit.Editor.ComponentModel
ArrayList tools = (ArrayList) categories[category];
return new ToolboxItemCollection (tools.ToArray () as ToolboxItem[]);
return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
}
public ToolboxItemCollection GetToolboxItems (System.ComponentModel.Design.IDesignerHost host)
@ -164,7 +164,7 @@ namespace AspNetEdit.Editor.ComponentModel
if (toolboxUser.GetToolSupported (tool))
tools.Add (tool);
return new ToolboxItemCollection(tools.ToArray () as ToolboxItem[]);
return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
}
public ToolboxItemCollection GetToolboxItems ()
@ -174,7 +174,7 @@ namespace AspNetEdit.Editor.ComponentModel
foreach (ArrayList arr in categories.Values)
tools.AddRange (arr);
return new ToolboxItemCollection(tools.ToArray () as ToolboxItem[]);
return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
}
public bool IsSupported (object serializedObject, System.ComponentModel.Design.IDesignerHost host)