Ejemplo n.º 1
0
        /// <summary>
        /// Raises an ExternalEvent event. This method should be called by a script in the HTML page
        /// by calling window.external.MGExternalEvent(string param)
        /// </summary>
        /// <param name="param">The string parameter to be passed to the event</param>
        public void MGExternalEvent(string param)
        {
            ExternalEventArgs e = new ExternalEventArgs();

            e.Param = param;
            OnExternalEvent(e);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Raises the com.magicsoftware.controls.ExternalEvent event.
 /// </summary>
 /// <param name="e">A com.magicsoftware.controls.ExternalEventArgs that contains the event data.</param>
 protected void OnExternalEvent(ExternalEventArgs e)
 {
     if (ExternalEvent != null)
     {
         ExternalEvent(this, e);
     }
 }