/// <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); }
/// <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); }