Beispiel #1
0
        void Commands_ComponentAdded(object sender, ComponentEventArgs e)
        {
            LabelLinkImage lli = e.Component as LabelLinkImage;

            if (lli != null)
            {
                lli.SelectLink += new EventHandler <EventArgs>(this.LabelLink_SelectLink);
            }
        }
Beispiel #2
0
        void Commands_ComponentRemoved(object sender, ComponentEventArgs e)
        {
            LabelLinkImage lli = e.Component as LabelLinkImage;

            if (lli != null)
            {
                lli.SelectLink -= new EventHandler <EventArgs>(this.LabelLink_SelectLink);
            }

            properties.Remove(e.Component);
        }