Esempio n. 1
0
        public static void LoadRealtimeRow(string Code, DataPackage dp, bool AlreadyMerged)
        {
            DataRow row1 = StockDB.dtSymbolList.Rows.Find(Code);

            if (row1 != null)
            {
                StockDB.dtSymbolListChanged = true;
                if (dp.Last != 0f)
                {
                    row1["LastA"] = dp.Last;
                }
                row1["OpenA"]    = dp.Open;
                row1["High"]     = dp.High;
                row1["Low"]      = dp.Low;
                row1["CloseA"]   = dp.Close;
                row1["Volume"]   = dp.Volume;
                row1["LastTime"] = dp.Date;
                if (AlreadyMerged)
                {
                    row1["MergeTime"] = dp.Date;
                }
                StockDB.UpdateRealtime(row1);
            }
        }