예제 #1
0
        private URL translate(URL url)
        {
            TranslateURLEventArgs e = new TranslateURLEventArgs(url);

            OnTranslateURL(e);
            return(e.Result);
        }
예제 #2
0
 /// <summary>
 /// Raises the <see cref="TranslateURL"/> event.
 /// </summary>
 /// <param name="e">A <see cref="TranslateURLEventArgs"/> that contains the event data.</param>
 protected virtual void OnTranslateURL(TranslateURLEventArgs e)
 {
     if (TranslateURL != null)
     {
         TranslateURL(this, e);
     }
 }