private void clearEditor()
{
if (gboEdit.Controls.Count != 0)
{
QbItemEditorBase editor = (QbItemEditorBase)gboEdit.Controls[0];
editor.Updated -= new UpdatedEventHandler(editor_Updated);
editor.Error -= new ErrorEventHandler(editor_Error);
gboEdit.Controls.Clear();
}
}