Esempio n. 1
0
 /// <summary>
 /// Raises the LinkClicked event.
 /// </summary>
 /// <param name="e">A LinkLabel2LinkClickedEventArgs that contains the event data.</param>
 protected virtual void OnLinkClicked(LinkLabel2LinkClickedEventArgs e)
 {
     if (LinkClicked != null)
     {
         LinkClicked(this, e);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Raises the Click event.
        /// </summary>
        /// <param name="e">An EventArgs that contains the event data.</param>
        protected override void OnClick(System.EventArgs e)
        {
            // Raise the LinkClicked event.
            LinkLabel2LinkClickedEventArgs args = new LinkLabel2LinkClickedEventArgs(this.LinkData);

            OnLinkClicked(args);
            // If applicable, indicate to the Form, through the Forms DialogResult property, that the
            // control was selected.
            if ((this.DialogResult != DialogResult.None) && (this.TopLevelControl is System.Windows.Forms.Form))
            {
                ((System.Windows.Forms.Form) this.TopLevelControl).DialogResult = this.DialogResult;
            }
            base.OnClick(e);
        }