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:
Родитель
84ec92428c
Коммит
957f98717a
|
@ -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>
|
2006-01-16 Michael Hutchinson <m.j.hutchinson@gmail.com>
|
||||||
|
|
||||||
* MenuCommandService.cs, WebFormPage.cs, Document.cs: Reduce trivial warnings
|
* MenuCommandService.cs, WebFormPage.cs, Document.cs: Reduce trivial warnings
|
||||||
|
|
|
@ -151,7 +151,7 @@ namespace AspNetEdit.Editor.ComponentModel
|
||||||
|
|
||||||
ArrayList tools = (ArrayList) categories[category];
|
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)
|
public ToolboxItemCollection GetToolboxItems (System.ComponentModel.Design.IDesignerHost host)
|
||||||
|
@ -164,7 +164,7 @@ namespace AspNetEdit.Editor.ComponentModel
|
||||||
if (toolboxUser.GetToolSupported (tool))
|
if (toolboxUser.GetToolSupported (tool))
|
||||||
tools.Add (tool);
|
tools.Add (tool);
|
||||||
|
|
||||||
return new ToolboxItemCollection(tools.ToArray () as ToolboxItem[]);
|
return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ToolboxItemCollection GetToolboxItems ()
|
public ToolboxItemCollection GetToolboxItems ()
|
||||||
|
@ -174,7 +174,7 @@ namespace AspNetEdit.Editor.ComponentModel
|
||||||
foreach (ArrayList arr in categories.Values)
|
foreach (ArrayList arr in categories.Values)
|
||||||
tools.AddRange (arr);
|
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)
|
public bool IsSupported (object serializedObject, System.ComponentModel.Design.IDesignerHost host)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче