示例#1
0
        /// <summary>
        /// Process an ANP event received from the KCD.
        /// </summary>
        private static void ProcessKcdAnpEvent(WmKcd kcd, AnpMsg msg)
        {
            // Get the external workspace ID referred to by the event.
            UInt64 externalID = msg.Elements[0].UInt64;

            // Locate the workspace.
            Workspace kws = kcd.GetWorkspaceByExternalID(externalID);

            // No such workspace, bail out.
            if (kws == null)
            {
                return;
            }

            // Dispatch the event to its workspace.
            kws.Sm.HandleKcdEvent(msg);
        }
示例#2
0
        /// <summary>
        /// Process an ANP event received from the KCD.
        /// </summary>
        private static void ProcessKcdAnpEvent(WmKcd kcd, AnpMsg msg)
        {
            // Get the external workspace ID referred to by the event.
            UInt64 externalID = msg.Elements[0].UInt64;

            // Locate the workspace.
            Workspace kws = kcd.GetWorkspaceByExternalID(externalID);

            // No such workspace, bail out.
            if (kws == null) return;

            // Dispatch the event to its workspace.
            kws.Sm.HandleKcdEvent(msg);
        }