public override GH_ObjectResponse RespondToMouseDown(GH_Canvas sender, GH_CanvasMouseEvent e) { GH_ObjectResponse val = composedCollection.RespondToMouseDown(sender, e); if ((int)val != 0) { this.ExpireLayout(); ((Control)sender).Refresh(); return(val); } return(base.RespondToMouseDown(sender, e)); }
public override GH_ObjectResponse RespondToMouseDown(GH_Canvas sender, GH_CanvasMouseEvent e) { try { GH_ObjectResponse val = _collection.RespondToMouseDown(sender, e); if ((int)val != 0) { this.ExpireLayout(); ((Control)sender).Refresh(); return(val); } return(this.RespondToMouseDown(sender, e)); } catch (Exception) { return(this.RespondToMouseDown(sender, e)); } }