/* void m_SKQuoteLib2_OnConnection(int nKind, int nCode) * { * if (nKind == 3001) * { * * if (nCode == 0) * { * label_2.ForeColor = Color.Yellow; * } * } * else if (nKind == 3002) * { * label_2.ForeColor = Color.Red; * } * else if (nKind == 3003) * { * label_2.ForeColor = Color.Green; * } * else if (nKind == 3021)//網路斷線 * { * label_2.ForeColor = Color.DarkRed; * } * }*/ void m_SKQuoteLib_OnNotifyQuote(short sMarketNo, short sStockIdx) { SKSTOCK pSKStock = new SKSTOCK(); m_SKQuoteLib.SKQuoteLib_GetStockByIndex(sMarketNo, sStockIdx, ref pSKStock); OnUpDateDataRow(pSKStock); }
void m_SKQuoteLib_OnNotifyQuote(short sMarketNo, short sStockIdx) { SKSTOCK pSKStock = new SKSTOCK(); m_SKQuoteLib.SKQuoteLib_GetStockByIndex(sMarketNo, sStockIdx, ref pSKStock); OnUpDateDataRow(pSKStock); //Kang Added SendReturnMessageINT_PY("m_SKQuoteLib_OnNotifyQuote", new List <int> { sMarketNo, sStockIdx }); }