Example #1
0
        /// <summary>
        /// Handles sciter notifications
        /// </summary>
        protected virtual void OnProcessCallbackHost(CallbackHostEventArgs e)
        {
            Debug.WriteLine(String.Format("Host event: [{0}, {1}]", e.First, e.Second));

            if (HasEvents)
            {
                var handler = (EventHandler <CallbackHostEventArgs>)Events[CallbackHostEvent];
                if (handler != null)
                {
                    handler(this, e);
                }
            }
        }
Example #2
0
        /// <summary>
        /// Handles sciter notifications
        /// </summary>
        protected virtual void OnProcessCallbackHost(CallbackHostEventArgs e)
        {
            Debug.WriteLine(String.Format("Host event: [{0}, {1}]", e.First, e.Second));

            if (HasEvents)
            {
                var handler = (EventHandler<CallbackHostEventArgs>)Events[CallbackHostEvent];
                if (handler != null)
                {
                    handler(this, e);
                }
            }
        }
Example #3
0
 /// <summary>
 /// Occurs when sciter wants to notify host
 /// </summary>
 void ISciterNotifications.ProcessCallbackHost(CallbackHostEventArgs e)
 {
     OnProcessCallbackHost(e);
 }
Example #4
0
 /// <summary>
 /// Occurs when sciter wants to notify host
 /// </summary>
 void ISciterNotifications.ProcessCallbackHost(CallbackHostEventArgs e)
 {
     OnProcessCallbackHost(e);
 }