示例#1
0
        /// <summary>
        /// Handles host callback notification
        /// </summary>
        private unsafe static void Host_HandleCallbackHost(ISciterNotifications host, IntPtr pns)
        {
            var datantf = (SCN_CALLBACK_HOST *)pns;
            var e       = new CallbackHostEventArgs((CallbackHostEventArgs.HostChannelType)datantf->channel, datantf->p1.GetValue(), datantf->p2.GetValue());

            host.ProcessCallbackHost(e);

            if (e.ReturnValue != null)
            {
                datantf->r.SetValue(e.ReturnValue);
            }
        }
示例#2
0
        /// <summary>
        /// Handles host callback notification
        /// </summary>
        private unsafe static void Host_HandleCallbackHost(ISciterNotifications host, IntPtr pns)
        {
            var datantf = (SCN_CALLBACK_HOST*)pns;
            var e = new CallbackHostEventArgs((CallbackHostEventArgs.HostChannelType)datantf->channel, datantf->p1.GetValue(), datantf->p2.GetValue());
            host.ProcessCallbackHost(e);

            if (e.ReturnValue != null)
                datantf->r.SetValue(e.ReturnValue);
        }