コード例 #1
0
        public double PriceByIndex(int index = 0)
        {
            if (index < 0 || index >= grid.Count)
            {
                return(0);
            }

            int key = grid.Keys[index];

            return(PriceHelper.GetPriceByLevel(key));
        }
コード例 #2
0
        public double PriceByIndex(int index)
        {
            lock (this)
            {
                if (index < 0 || index >= Grid.Count)
                {
                    return(0);
                }

                int key = Grid.Keys[index];
                return(PriceHelper.GetPriceByLevel(key));
            }
        }