advise on adding events in the object constructor
<p>I need an advice on adding event (mouse click for that matter) in the class constructor.</p>

<p>I've got a array of images that i get from Flickr and that can be change and i want to add to them a click event.</p>

<p>I really had a problem with that so i made a class image and add the event in the constructor so i wont need to search what control i clicked on the page every time i clicked him.</p>

<p>Here is a sample of the constructor:</p>

<pre><code> public FlickerImages(string url, string title, string desc,  System.Web.UI.Page page,ImageButton image)
{
    this.url = url;
    this.title = title;
    this.descreption = desc;
    this.image = image;

    image.Click += this.onImageClick; //--&gt; the event
    //image is a ImageButton object

    this.page = page;


}
</code></pre>

<p>I want to know if that is a good practice or should i always add events outside the objects class'?</p>

<p>(sorry for my English)</p>
