void QsysProcessor_SimplEvent(object sender, SimplEventArgs e) { switch (e.ID) { case eQscSimplEventIds.IsRegistered: if (onIsRegistered != null) { onIsRegistered(e.IntData); } break; case eQscSimplEventIds.IsConnected: if (onIsConnected != null) { onIsConnected(e.IntData); } break; case eQscSimplEventIds.NewCoreStatus: if (onNewCoreStatus != null) { onNewCoreStatus(QsysProcessor.DesignName, Convert.ToUInt16(QsysProcessor.IsRedundant), Convert.ToUInt16(QsysProcessor.IsEmulator)); } break; default: break; } }
internal void Fire(SimplEventArgs e) { onNewEvent(null, e); }
void QsysProcessor_SimplEvent(object sender, SimplEventArgs e) { switch (e.ID) { case eQscSimplEventIds.IsRegistered: if (onIsRegistered != null) { onIsRegistered(e.IntData); } break; case eQscSimplEventIds.IsConnected: if (onIsConnected != null) { onIsConnected(e.IntData); } break; case eQscSimplEventIds.CoreState: if (onCoreState != null) { onCoreState(e.IntData); } break; case eQscSimplEventIds.Platform: if (onPlatform != null) { onPlatform(e.StringData); } break; case eQscSimplEventIds.DesignName: if (onDesignName != null) { onDesignName(e.StringData); } break; case eQscSimplEventIds.DesignCode: if (onDesignCode != null) { onDesignCode(e.StringData); } break; case eQscSimplEventIds.IsRedundant: if (onIsRedundant != null) { onIsRedundant(e.IntData); } break; case eQscSimplEventIds.IsEmulator: if (onIsEmulator != null) { onIsEmulator(e.IntData); } break; case eQscSimplEventIds.StatusCode: if (onStatusCode != null) { onStatusCode(e.IntData); } break; case eQscSimplEventIds.StatusString: if (onStatusString != null) { onStatusString(e.StringData); } break; default: break; } }