void IToolboxConsumer.DragItem(ItemToolboxNode item, Gtk.Widget source, Gdk.DragContext ctx) { if (Designer != null) { ComponentToolboxNode node = item as ComponentToolboxNode; if (node != null) { if (node.Reference == null) { Designer.BeginComponentDrag(node.ComponentType, source, ctx); } else { Designer.BeginComponentDrag(node.Name, node.ClassName, source, ctx, delegate { CheckReference(node); }); } } } }